EDU.cmu.cs.coral.util
Class UnexpectedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--EDU.cmu.cs.coral.util.UnexpectedException

public class UnexpectedException
extends java.lang.RuntimeException

This is a generic exception for unexpected circumstances. It is somewhat similar to RuntimeException, except that it has constructors to take other throwable objects.

See Also:
Serialized Form

Constructor Summary
UnexpectedException()
           
UnexpectedException(java.lang.String s)
           
UnexpectedException(java.lang.String s, boolean printMessage)
           
UnexpectedException(java.lang.String s, java.io.PrintStream msgStream)
           
UnexpectedException(java.lang.Throwable t)
           
UnexpectedException(java.lang.Throwable t, boolean printMessage)
           
UnexpectedException(java.lang.Throwable t, java.io.PrintStream msgStream)
           
UnexpectedException(java.lang.Throwable t, java.lang.String label)
           
UnexpectedException(java.lang.Throwable t, java.lang.String label, boolean printMessage)
           
UnexpectedException(java.lang.Throwable t, java.lang.String label, java.io.PrintStream msgStream)
           
 
Method Summary
static boolean isPrintingMessages()
           
protected static java.lang.String makeStringFromThrowable(java.lang.Throwable t, java.lang.String label)
           
 
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
 

Constructor Detail

UnexpectedException

public UnexpectedException()

UnexpectedException

public UnexpectedException(java.lang.Throwable t)

UnexpectedException

public UnexpectedException(java.lang.Throwable t,
                           boolean printMessage)

UnexpectedException

public UnexpectedException(java.lang.Throwable t,
                           java.io.PrintStream msgStream)

UnexpectedException

public UnexpectedException(java.lang.Throwable t,
                           java.lang.String label)

UnexpectedException

public UnexpectedException(java.lang.Throwable t,
                           java.lang.String label,
                           boolean printMessage)

UnexpectedException

public UnexpectedException(java.lang.Throwable t,
                           java.lang.String label,
                           java.io.PrintStream msgStream)

UnexpectedException

public UnexpectedException(java.lang.String s)

UnexpectedException

public UnexpectedException(java.lang.String s,
                           boolean printMessage)

UnexpectedException

public UnexpectedException(java.lang.String s,
                           java.io.PrintStream msgStream)
Method Detail

makeStringFromThrowable

protected static final java.lang.String makeStringFromThrowable(java.lang.Throwable t,
                                                                java.lang.String label)

isPrintingMessages

public static final boolean isPrintingMessages()