| Author |  | 
      
        | jamyzhang Newbie
 
  
 
 Joined: 30 March 2010
 Online Status: Offline
 Posts: 4
 | 
          We want display the error message to our users. But the exception message is english, does the exception message support multiple language?
           | Posted: 07 July 2010 at 1:13am | IP Logged |   |  
           | 
 |  Another way, if we can get the error code if the an exception occured?
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          MailBee exceptions are available in English language only. If you want to have different output, you can catch the exceptions and display your own messages based on the error code returned by MailBeeException.ErrorCode property, the range of supported values is listed here.
           | Posted: 07 July 2010 at 2:10am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Correction. MailBee exceptions are indeed available in English only out-of-box but there is MailBee.Resources class which allows you to redefine them all.
           | Posted: 07 July 2010 at 3:28am | IP Logged |   |  
           | 
 |  
 See MailBee.Resources for example. It redefines log messages but the same approach can be used to redefine error messages as well (they all are constants in Resources class).
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |