Package nu.xom

Class IllegalDataException

    • Constructor Summary

      Constructors 
      Constructor Description
      IllegalDataException​(String message)
      Creates a new IllegalDataException with a detail message.
      IllegalDataException​(String message, Throwable cause)
      Creates a new IllegalDataException with a detail message and an underlying root cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getData()
      Returns a string containing the actual illegal text that caused this exception.
      void setData​(String data)
      Stores the illegal text that caused this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IllegalDataException

        public IllegalDataException​(String message)

        Creates a new IllegalDataException with a detail message.

        Parameters:
        message - a string indicating the specific problem
      • IllegalDataException

        public IllegalDataException​(String message,
                                    Throwable cause)

        Creates a new IllegalDataException with a detail message and an underlying root cause.

        Parameters:
        message - a string indicating the specific problem
        cause - the original cause of this exception
    • Method Detail

      • setData

        public void setData​(String data)

        Stores the illegal text that caused this exception.

        Parameters:
        data - the illegal data that caused this exception
      • getData

        public String getData()

        Returns a string containing the actual illegal text that caused this exception.

        Returns:
        the syntactically incorrect data that caused this exception