Author |
|
jamyzhang Newbie
Joined: 30 March 2010
Online Status: Offline Posts: 4
|
Posted: 07 July 2010 at 1:13am | IP Logged
|
|
|
We want display the error message to our users. But the exception message is english, does the exception message support multiple language?
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: 6104
|
Posted: 07 July 2010 at 2:10am | IP Logged
|
|
|
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.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 07 July 2010 at 3:28am | IP Logged
|
|
|
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.
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 |
|
|