| Author: Vivek 28 Sep 2008 | Member Level: Gold | Rating:   Points: 3 |
Yes, you can throw your own exception like below try { // your code } catch(Exception e) { throw new Exception("My Exception"); }
or
try { // your code } catch(Exception e) { throw e; }
|
| Author: Bindu Bujji 28 Sep 2008 | Member Level: Gold | Rating:  Points: 2 |
use like this. catch(Exception e) { throw new Exception("your Exception Name "); }
Bindu
|