Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Multiple language exception message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jamyzhang
Newbie
Newbie


Joined: 30 March 2010
Online Status: Offline
Posts: 4
Posted: 07 July 2010 at 1:13am | IP Logged Quote jamyzhang

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 View jamyzhang's Profile Search for other posts by jamyzhang
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6094
Posted: 07 July 2010 at 2:10am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 07 July 2010 at 3:28am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide