Class RootCasException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AuthenticationException

    public abstract class RootCasException
    extends java.lang.RuntimeException
    Generic CAS exception that sits at the top of the exception hierarchy. Provides unified logic around retrieval and configuration of exception codes that may be mapped inside an external resource bundle for internationalization of error messages.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RootCasException​(java.lang.String code, java.lang.String msg)  
      RootCasException​(java.lang.String code, java.lang.String msg, java.util.List<java.lang.Object> args)  
      RootCasException​(java.lang.String code, java.lang.Throwable throwable)  
      RootCasException​(java.lang.String code, java.lang.Throwable throwable, java.util.List<java.lang.Object> args)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()  
      • 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

      • RootCasException

        public RootCasException​(java.lang.String code,
                                java.lang.String msg)
      • RootCasException

        public RootCasException​(java.lang.String code,
                                java.lang.String msg,
                                java.util.List<java.lang.Object> args)
      • RootCasException

        public RootCasException​(java.lang.String code,
                                java.lang.Throwable throwable)
      • RootCasException

        public RootCasException​(java.lang.String code,
                                java.lang.Throwable throwable,
                                java.util.List<java.lang.Object> args)
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Returns:
        Returns the code. If there is a chained exception it recursively calls getCode() on the cause of the chained exception rather than the returning the code itself.