avrora
Class Avrora.Unexpected

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byavrora.Avrora.Error
              extended byavrora.Avrora.Unexpected
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Avrora

public static class Avrora.Unexpected
extends Avrora.Error

The Unexpected class wraps an unexpected exception that may happen during execution. This is useful for a "catch all" type of clause to handle all the possible exceptions that could happen during execution without having to write explicit handlers for each.

See Also:
Serialized Form

Field Summary
 java.lang.Throwable thrown
           
 
Fields inherited from class avrora.Avrora.Error
message, param, STACKTRACES
 
Constructor Summary
Avrora.Unexpected(java.lang.Throwable t)
           
 
Method Summary
 void report()
           
 void rethrow()
           
 
Methods inherited from class avrora.Avrora.Error
getParam
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

thrown

public final java.lang.Throwable thrown
Constructor Detail

Avrora.Unexpected

public Avrora.Unexpected(java.lang.Throwable t)
Method Detail

report

public void report()
Overrides:
report in class Avrora.Error

rethrow

public void rethrow()
             throws java.lang.Throwable
Throws:
java.lang.Throwable