All Packages Class Hierarchy This Package Previous Next Index
Class sunw.demo.encapsulatedEvents.EncapsulatedEventException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.lang.RuntimeException
|
+----sunw.demo.encapsulatedEvents.EncapsulatedEventException
- public class EncapsulatedEventException
- extends RuntimeException
Implementors of EncapsulatedListener use this Exception class to throw
Encapsulated Event specific exceptions back to the Event Source.
For instance if a Listener is processing an EncapsulatedEvent that is
encapsulating a FooEvent, delivered to the FooListener interface method:
void fooHappened(FooEvent fe) throws BadFooException;
then in order for the EncapsulatedEventListener to throw the
BadFooException it should invoke:
throw new EncapsulatedEventException(new BadFooException());
-
exception
-
-
EncapsulatedEventException(Exception)
- public constructor
-
EncapsulatedEventException(Exception, String)
- public constructor
-
getException()
-
-
getExceptionClass()
-
-
getExceptionClassName()
-
exception
protected Exception exception
EncapsulatedEventException
public EncapsulatedEventException(Exception e)
- public constructor
EncapsulatedEventException
public EncapsulatedEventException(Exception e,
String s)
- public constructor
getException
public Exception getException()
- Returns:
- s the Exception Object itself
getExceptionClass
public Class getExceptionClass()
- Returns:
- s the Class of the Exception Object itself.
getExceptionClassName
public String getExceptionClassName()
- Returns:
- s the name of the Class of the Exception Object itself.
All Packages Class Hierarchy This Package Previous Next Index