Class CodeBasedException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    FunctionalException, TechnicalException

    public abstract class CodeBasedException
    extends java.lang.Exception
    Abstract exception type based on error code
    Author:
    Christopher Laszczuk
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CodeBasedException()  
      protected CodeBasedException​(java.lang.String message)  
      protected CodeBasedException​(java.lang.String code, java.lang.String message, java.lang.Throwable cause)  
      protected CodeBasedException​(java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()
      Gets the error code of this exception
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • CodeBasedException

        protected CodeBasedException()
      • CodeBasedException

        protected CodeBasedException​(java.lang.String message)
      • CodeBasedException

        protected CodeBasedException​(java.lang.String message,
                                     java.lang.Throwable cause)
      • CodeBasedException

        protected CodeBasedException​(java.lang.String code,
                                     java.lang.String message,
                                     java.lang.Throwable cause)