|
TEMERITY | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
us.temerity.pipeline.PipelineException
public class PipelineException
High level Pipeline error events which should be reported to the user.
These exceptions may be generated for a variety of non-fatal failure conditions, but should always contain a message designed to be easily understandable by the user. In other words, they shouldn't require the user to understand any of the internals of Pipeline to interpret the message.
| Constructor Summary | |
|---|---|
PipelineException()
Constructs a new exception with null as its detail message. |
|
PipelineException(String message)
Constructs a new exception with the specified detail message. |
|
PipelineException(String message,
Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
PipelineException(String header,
Throwable cause,
boolean appendCause,
boolean appendStack)
Constructs a new exception with the specified cause and a detail message containing a detailed message explaining the the cause of an exception. |
|
PipelineException(Throwable cause)
Constructs a new exception with the specified cause and a detail message of ( cause==null ? null : cause.toString()) which typically contains the
class and detail message of cause. |
|
| Method Summary | |
|---|---|
static PipelineException |
getDetailedException(Throwable cause)
Constructs a new exception from the specified cause that builds a detailed error message, including the stack trace. |
| 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 |
| Constructor Detail |
|---|
public PipelineException()
null as its detail message.
The cause is not initialized, and may subsequently be initialized by a call to
initCause.
public PipelineException(String message)
initCause.
message - The detail message. The detail message is saved for later retrieval by the
getMessage method.
public PipelineException(String message,
Throwable cause)
Note that the detail message associated with cause is not
automatically incorporated in this exception's detail message.
message - The detail message. The detail message is saved for later retrieval by the
getMessage method.cause - The cause (which is saved for later retrieval by the getCause
method). (A null value is permitted, and indicates that the cause is
nonexistent or unknown.)public PipelineException(Throwable cause)
cause==null ? null : cause.toString()) which typically contains the
class and detail message of cause. This constructor is useful for exceptions that
are little more than wrappers for other throwables.
cause - The cause (which is saved for later retrieval by the getCause
method). (A null value is permitted, and indicates that the cause is
nonexistent or unknown.)
public PipelineException(String header,
Throwable cause,
boolean appendCause,
boolean appendStack)
header - Some introductory text explaining the high-level reason for the exception to
include at the start of the detail message or null to omit the header.cause - The exception being explained. A null value is permitted and
indicates that the cause is nonexistent or unknown.appendCause - Whether to append the short exception message text to the detail message.
This text will be generated by the expression (cause==null ? null :
cause.toString()), which typically contains the class and a brief explanation
of the cause.appendStack - Whether to append the complete stack trace of when the exception occured to the
detail message.| Method Detail |
|---|
public static PipelineException getDetailedException(Throwable cause)
cause - The cause (which is saved for later retrieval by the getCause
method).
|
TEMERITY | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||