I have the following method:
|
how do i add a custome error message to teh message Property of "ex" and throw the ex object to teh caller from catch block?
TY in Advance
|
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
petre ricardoPosted Sep 13, 2009, 9:41 PM
1. But why we create a Serializable Exception class
2.
I'm assuming that "InternalErrorException" that you have tried to meant the constructor of the mYCustomerException class therefore souldn't the name "InternalErrorException" changed to "MyCustomerException"?
Roei BarPosted Sep 13, 2009, 1:22 PM
in the catch you will write :
we create a serializable Exception Class: