all groups > macromedia flash flashcom > june 2006 >
You're in the

macromedia flash flashcom

group:

Custom Error Messages


Custom Error Messages widaph1
6/14/2006 5:12:00 PM
macromedia flash flashcom:
Re: Custom Error Messages widaph1
6/14/2006 5:55:21 PM
Solved my own problem, here's an example:

function InvalidCredentialsException () {
this.message = "The username and password do not match any records in the
system.";
this.toString = function () {
return this.message;
};
}

try {
throw new InvalidCredentialsException();
} catch (e) {
if (e instanceof InvalidCredentialsException) {
...
}
}
AddThis Social Bookmark Button