sunw.demo.encapsulatedEvents
Class EncapsulatedEventException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--sunw.demo.encapsulatedEvents.EncapsulatedEventException

public class EncapsulatedEventException
extends java.lang.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());

See Also:
Serialized Form

Field Summary
protected  java.lang.Exception exception
           
 
Constructor Summary
EncapsulatedEventException(java.lang.Exception e)
          public constructor
EncapsulatedEventException(java.lang.Exception e, java.lang.String s)
          public constructor
 
Method Summary
 java.lang.Exception getException()
           
 java.lang.Class getExceptionClass()
           
 java.lang.String getExceptionClassName()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

protected java.lang.Exception exception
Constructor Detail

EncapsulatedEventException

public EncapsulatedEventException(java.lang.Exception e)
public constructor

EncapsulatedEventException

public EncapsulatedEventException(java.lang.Exception e,
                                  java.lang.String s)
public constructor
Method Detail

getException

public java.lang.Exception getException()

getExceptionClass

public java.lang.Class getExceptionClass()

getExceptionClassName

public java.lang.String getExceptionClassName()