You need to sign in to do that
Don't have an account?
asadim
Custom Exception message
Hi,
I have a custom exception class like so:
global class MyException extends Exception { global Boolean isCritical { get; private set; } global MyException( String msg, Boolean isCritical) { this(msg); this.isCritical = isCritical; } }
But when MyException is thrown and caught the message that I get says "script-throw exception" as opposed to the message that I had specified.
Any ideas on how to get the message out of the exception? Thanks.
Old thread, but I showed up here looking for the same information.
Change
to