ibis.ipl
Class IbisError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byibis.ipl.IbisError
All Implemented Interfaces:
java.io.Serializable

public class IbisError
extends java.lang.Error

Like java.lang.Error, but with a cause.

See Also:
Serialized Form

Constructor Summary
IbisError()
          Constructsn a IbisError with null as its error detail message.
IbisError(java.lang.String s)
          Constructs a IbisError with the specified detail message.
IbisError(java.lang.String s, java.lang.Throwable cause)
          Constructs a IbisError with the specified detail message and cause.
IbisError(java.lang.Throwable cause)
          Constructs a IbisError with the specified cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this error.
 java.lang.String getMessage()
          Returns the error detail message of this error, including the one of cause, if there is one.
 java.lang.Throwable initCause(java.lang.Throwable t)
          Initializes and returns the cause of this error.
 void printStackTrace()
          Prints stack trace of both cause and this.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IbisError

public IbisError()
Constructsn a IbisError with null as its error detail message.


IbisError

public IbisError(java.lang.String s)
Constructs a IbisError with the specified detail message.

Parameters:
s - the detail message

IbisError

public IbisError(java.lang.String s,
                 java.lang.Throwable cause)
Constructs a IbisError with the specified detail message and cause.

Parameters:
s - the detail message
cause - the cause

IbisError

public IbisError(java.lang.Throwable cause)
Constructs a IbisError with the specified cause.

Parameters:
cause - the cause
Method Detail

initCause

public java.lang.Throwable initCause(java.lang.Throwable t)
Initializes and returns the cause of this error.

Returns:
the cause.

getCause

public java.lang.Throwable getCause()
Returns the cause of this error.

Returns:
the cause.

getMessage

public java.lang.String getMessage()
Returns the error detail message of this error, including the one of cause, if there is one.

Returns:
the detail message.

printStackTrace

public void printStackTrace()
Prints stack trace of both cause and this.



The Ibis project