Class CSSException

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

    public class CSSException
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  CSSException.ErrorCode
      Enum for error codes.
    • Constructor Summary

      Constructors 
      Constructor Description
      CSSException()
      Creates a new CSSException.
      CSSException​(java.lang.Exception e)
      Creates a new CSSException with an embeded exception.
      CSSException​(java.lang.String message)
      Creates a new CSSException.
      CSSException​(CSSException.ErrorCode code)
      Creates a new CSSException with a specific code.
      CSSException​(CSSException.ErrorCode code, java.lang.String message, java.lang.Exception e)
      Creates a new CSSException with an embeded exception and a specified message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CSSException.ErrorCode getCode()  
      java.lang.String getMessage()
      Returns the detail message of this throwable object.
      • Methods inherited from class java.lang.Throwable

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

      • CSSException

        public CSSException()
        Creates a new CSSException.
      • CSSException

        public CSSException​(java.lang.String message)
        Creates a new CSSException.
        Parameters:
        message - the message
      • CSSException

        public CSSException​(java.lang.Exception e)
        Creates a new CSSException with an embeded exception.
        Parameters:
        e - the embeded exception.
      • CSSException

        public CSSException​(CSSException.ErrorCode code)
        Creates a new CSSException with a specific code.
        Parameters:
        code - a the embeded exception.
      • CSSException

        public CSSException​(CSSException.ErrorCode code,
                            java.lang.String message,
                            java.lang.Exception e)
        Creates a new CSSException with an embeded exception and a specified message.
        Parameters:
        code - the specified code
        message - the message
        e - the embeded exception
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the detail message of this throwable object.
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the detail message of this Throwable, or null if this Throwable does not have a detail message.