Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Explain the user defined Exceptions?
Explain the user defined Exceptions?
✍: Guest
User defined Exceptions are the separate Exception classes defined by the user for specific purposed. An user defined can created by simply sub-classing it to the Exception class. This allows custom exceptions to be generated (using throw) and caught in the same way as normal exceptions.
Example:
class myCustomException extends Exception {
// The class simply has to exist to be an exception
}
2013-02-22, 2215👍, 0💬
Popular Posts:
What are the two kinds of comments in JSP and what's the difference between them? <%-- JSP Co...
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? Unicode requires 1...
How was XML handled during COM times? During COM it was done by using MSXML 4.0. So old languages li...
Can you please post OpenLink Endur related FAQ's,tutorials,document s.Thanks
Can you please post OpenLink Endur related FAQ's,tutorials,document s.Thanks