org.objectweb.jonathan.apis.kernel
Class InternalException
RuntimeException
org.objectweb.jonathan.apis.kernel.InternalException
public class InternalException
extends RuntimeException
InternalExceptions are unexpected exceptions that may occur e.g., when some
entities (kernel, binders, stub factories, ...), are incompatible or badly used.
InternalException() - Constructs a new InternalException with no detail message.
|
InternalException(String s) - Constructs a new InternalException with a detail message.
|
InternalException(Throwable throwable) - Builds an InternalException that wraps another exception.
|
String | getMessage() - Returns the detail message of this InternalException.
|
void | printStackTrace() - Prints this InternalException and its backtrace to the
standard error stream.
|
void | printStackTrace(PrintStream s) - Prints this InternalException and its backtrace to the
specified print stream.
|
void | printStackTrace(PrintWriter s) - Prints this 'Throwable' and its backtrace to the specified
print writer.
|
Throwable | represents() - Returns the exception wrapped by this InternalException.
|
String | toString() - Returns a short description of this InternalException.
|
InternalException
public InternalException()
Constructs a new InternalException with no detail message.
InternalException
public InternalException(String s)
Constructs a new InternalException with a detail message.
InternalException
public InternalException(Throwable throwable)
Builds an InternalException that wraps another exception.
getMessage
public String getMessage()
Returns the detail message of this InternalException.
If this exception represents another exception, the returned message is
that of the represented exception.
- the detail message of this 'InternalException',
or 'null' if this 'InternalException' does not
have a detail message.
printStackTrace
public void printStackTrace()
Prints this InternalException and its backtrace to the
standard error stream.
If this exception represents another exception, the printed description
and backtrace are that of the represented exception.
printStackTrace
public void printStackTrace(PrintStream s)
Prints this InternalException and its backtrace to the
specified print stream.
If this exception represents another exception, the printed description
and backtrace are that of the represented exception.
s
- the print stream.
printStackTrace
public void printStackTrace(PrintWriter s)
Prints this 'Throwable' and its backtrace to the specified
print writer.
If this exception represents another exception, the printed description
and backtrace are that of the represented exception.
s
- the print writer.
represents
public Throwable represents()
Returns the exception wrapped by this InternalException.
If this exception doesn't wrap any other exception, it returns itself.
- the represented exception.
toString
public String toString()
Returns a short description of this InternalException.
If this exception represents another exception, the returned description
is that of the represented exception.
- a string representation of this 'InternalException'.