Class CSSException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CSSParseException

public class CSSException extends RuntimeException
See Also:
  • Field Details

  • Constructor Details

    • CSSException

      public CSSException()
      Creates a new CSSException.
    • CSSException

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

      public CSSException(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, String message, 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 Details

    • getMessage

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

      public CSSException.ErrorCode getCode()
      Returns:
      the error code for this exception.