Package org.refcodes.interceptor
Class WorkPieceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.refcodes.exception.AbstractException
-
- org.refcodes.interceptor.InterceptorException
-
- org.refcodes.interceptor.WorkPieceException
-
- All Implemented Interfaces:
WorkPieceAccessor<java.lang.Object>
public class WorkPieceException extends InterceptorException implements WorkPieceAccessor<java.lang.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:
- Serialized Form
-
-
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
Constructors Constructor Description WorkPieceException(java.lang.Object aWorkPiece, java.lang.String message)Instantiates a new work piece exception.WorkPieceException(java.lang.Object aWorkPiece, java.lang.String aMessage, java.lang.String aErrorCode)Instantiates a new work piece exception.WorkPieceException(java.lang.Object aWorkPiece, java.lang.String message, java.lang.Throwable cause)Instantiates a new work piece exception.WorkPieceException(java.lang.Object aWorkPiece, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)Instantiates a new work piece exception.WorkPieceException(java.lang.Object aWorkPiece, java.lang.Throwable cause)Instantiates a new work piece exception.WorkPieceException(java.lang.Object aWorkPiece, java.lang.Throwable aCause, java.lang.String aErrorCode)Instantiates a new work piece exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetWorkPiece()Gets the work piece.
-
-
-
Constructor Detail
-
WorkPieceException
public WorkPieceException(java.lang.Object aWorkPiece, java.lang.String aMessage, java.lang.String aErrorCode)Instantiates a new work piece exception.- Parameters:
aWorkPiece- the work pieceaMessage- the messageaErrorCode- the error code
-
WorkPieceException
public WorkPieceException(java.lang.Object aWorkPiece, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)Instantiates a new work piece exception.- Parameters:
aWorkPiece- the work pieceaMessage- the messageaCause- the causeaErrorCode- the error code
-
WorkPieceException
public WorkPieceException(java.lang.Object aWorkPiece, java.lang.String message, java.lang.Throwable cause)Instantiates a new work piece exception.- Parameters:
aWorkPiece- the work piecemessage- the messagecause- the cause
-
WorkPieceException
public WorkPieceException(java.lang.Object aWorkPiece, java.lang.String message)Instantiates a new work piece exception.- Parameters:
aWorkPiece- the work piecemessage- the message
-
WorkPieceException
public WorkPieceException(java.lang.Object aWorkPiece, java.lang.Throwable aCause, java.lang.String aErrorCode)Instantiates a new work piece exception.- Parameters:
aWorkPiece- the work pieceaCause- the causeaErrorCode- the error code
-
WorkPieceException
public WorkPieceException(java.lang.Object aWorkPiece, java.lang.Throwable cause)Instantiates a new work piece exception.- Parameters:
aWorkPiece- the work piececause- the cause
-
-
Method Detail
-
getWorkPiece
public java.lang.Object getWorkPiece()
Gets the work piece.- Specified by:
getWorkPiecein interfaceWorkPieceAccessor<java.lang.Object>- Returns:
- the work piece
-
-