Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Struts (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, 2449👍, 0💬
Popular Posts:
How Large Can a Single Cookie Be? - PHP Script Tips - Understanding and Managing Cookies How large c...
Can Java object be locked down for exclusive use by a given thread? Yes. You can lock an object by p...
How To Dump the Contents of a Directory into an Array? - PHP Script Tips - Working with Directoris a...
How To Assign Query Results to Variables? - Oracle DBA FAQ - Working with Database Objects in PL/SQL...
Can include files be nested? The answer is yes. Include files can be nested any number of times. As ...