Class WorkPieceException

    • 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
    • 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.Object getWorkPiece​()
      Gets the work piece.
      • Methods inherited from class org.refcodes.exception.AbstractException

        getErrorCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • 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 piece
        aMessage - the message
        aErrorCode - 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 piece
        aMessage - the message
        aCause - the cause
        aErrorCode - 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 piece
        message - the message
        cause - the cause
      • WorkPieceException

        public WorkPieceException​(java.lang.Object aWorkPiece,
                                  java.lang.String message)
        Instantiates a new work piece exception.
        Parameters:
        aWorkPiece - the work piece
        message - 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 piece
        aCause - the cause
        aErrorCode - the error code
      • WorkPieceException

        public WorkPieceException​(java.lang.Object aWorkPiece,
                                  java.lang.Throwable cause)
        Instantiates a new work piece exception.
        Parameters:
        aWorkPiece - the work piece
        cause - the cause
    • Method Detail

      • getWorkPiece

        public java.lang.Object getWorkPiece​()
        Gets the work piece.
        Specified by:
        getWorkPiece in interface WorkPieceAccessor<java.lang.Object>
        Returns:
        the work piece