java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.interceptor.InterceptorException
org.refcodes.interceptor.WorkPieceException
- All Implemented Interfaces:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,WorkPieceAccessor<Object>
The work piece exception is related to a work piece. Therefore the work piece
exception provides access to the work piece in question.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
Nested classes/interfaces inherited from interface org.refcodes.interceptor.WorkPieceAccessor
WorkPieceAccessor.WorkPieceMutator<WP>, WorkPieceAccessor.WorkPieceProperty<WP>
-
Constructor Summary
ConstructorDescriptionWorkPieceException
(Object aWorkPiece, String message) Instantiates a new work piece exception.WorkPieceException
(Object aWorkPiece, String aMessage, String aErrorCode) Instantiates a new work piece exception.WorkPieceException
(Object aWorkPiece, String message, Throwable cause) Instantiates a new work piece exception.WorkPieceException
(Object aWorkPiece, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new work piece exception.WorkPieceException
(Object aWorkPiece, Throwable cause) Instantiates a new work piece exception.WorkPieceException
(Object aWorkPiece, Throwable aCause, String aErrorCode) Instantiates a new work piece exception. -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WorkPieceException
Instantiates a new work piece exception.- Parameters:
aWorkPiece
- the work pieceaMessage
- the messageaErrorCode
- the error code
-
WorkPieceException
Instantiates a new work piece exception.- Parameters:
aWorkPiece
- the work pieceaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
WorkPieceException
Instantiates a new work piece exception.- Parameters:
aWorkPiece
- the work piecemessage
- the messagecause
- the cause
-
WorkPieceException
Instantiates a new work piece exception.- Parameters:
aWorkPiece
- the work piecemessage
- the message
-
WorkPieceException
Instantiates a new work piece exception.- Parameters:
aWorkPiece
- the work pieceaCause
- the causeaErrorCode
- the error code
-
WorkPieceException
Instantiates a new work piece exception.- Parameters:
aWorkPiece
- the work piececause
- the cause
-
-
Method Details
-
getWorkPiece
Gets the work piece.- Specified by:
getWorkPiece
in interfaceWorkPieceAccessor<Object>
- Returns:
- the work piece
-