public class WorkPieceException extends InterceptorException implements WorkPieceAccessor<Object>
WorkPieceAccessor.WorkPieceMutator<WP>, WorkPieceAccessor.WorkPieceProperty<WP>
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
Constructor and Description |
---|
WorkPieceException(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.
|
Modifier and Type | Method and Description |
---|---|
Object |
getWorkPiece()
Gets the work piece.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WorkPieceException(Object aWorkPiece, String aMessage, String aErrorCode)
aWorkPiece
- the a work pieceaMessage
- the a messageaErrorCode
- the a error codepublic WorkPieceException(Object aWorkPiece, String aMessage, Throwable aCause, String aErrorCode)
aWorkPiece
- the a work pieceaMessage
- the a messageaCause
- the a causeaErrorCode
- the a error codepublic WorkPieceException(Object aWorkPiece, String message, Throwable cause)
aWorkPiece
- the a work piecemessage
- the messagecause
- the causepublic WorkPieceException(Object aWorkPiece, String message)
aWorkPiece
- the a work piecemessage
- the messagepublic WorkPieceException(Object aWorkPiece, Throwable aCause, String aErrorCode)
aWorkPiece
- the a work pieceaCause
- the a causeaErrorCode
- the a error codepublic Object getWorkPiece()
getWorkPiece
in interface WorkPieceAccessor<Object>
Copyright © 2017. All rights reserved.