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());


Variable Index

 o exception

Constructor Index

 o EncapsulatedEventException(Exception)
public constructor
 o EncapsulatedEventException(Exception, String)
public constructor

Method Index

 o getException()
 o getExceptionClass()
 o getExceptionClassName()

Variables

 o exception
 protected Exception exception

Constructors

 o EncapsulatedEventException
 public EncapsulatedEventException(Exception e)
public constructor

 o EncapsulatedEventException
 public EncapsulatedEventException(Exception e,
                                   String s)
public constructor

Methods

 o getException
 public Exception getException()
Returns:
s the Exception Object itself
 o getExceptionClass
 public Class getExceptionClass()
Returns:
s the Class of the Exception Object itself.
 o 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