Name
UserException
Synopsis
This is the base class for all user exceptions that are defined in IDL
and mapped to Java. It extends java.lang.Exception
directly, so it
represents a Java user exception that must be declared in method
signatures and caught in application code that calls these
methods. Unlike the SystemException
, the UserException
class doesn’t
declare any data members for describing the exception to the
caller. Subclasses must do this to suit the type of exception that
they represent. It does, however, inherit the message property from
Throwable
, which can be used to store a descriptive message on the
exception to describe the reason.
public abstract class UserException extends Exception implements org.omg.CORBA.portable.IDLEntity { // Protected Constructors protected UserException(); protected UserException( String reason); }
Subclasses
Too many classes to list.
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.