Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VTypes - Release 1
Class org.violetlib.types.InvalidDataException
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.types

Class InvalidDataException

  • Object
    • Throwable
      • Exception
        • InvalidDataException
  • All Implemented Interfaces:
    Serializable
    public final class InvalidDataException extends Exception
    A generic exception for reporting invalid data to the user. It should not be used for failures, such as a database that contains unexpected invalid data.

    This exception must have a message, because the message is typically displayed to the user as an explanation of the problem. The exception class name is not normally displayed.

    Any code that handles this exception should probably also handle InvalidDataRuntimeException.

    See Also:
    Serialized Form
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator create Reveal DetailHide Detail
      static InvalidDataException create(String msg)
      Create an invalid data exception with the specified message.
      public static InvalidDataException create(String msg) throws IllegalArgumentException
      Create an invalid data exception with the specified message.
      Parameters:
      msg - The message.
      Throws:
      IllegalArgumentException - if msg is empty.
      Ordinary member indicator create Reveal DetailHide Detail
      static InvalidDataException create(String msg, Throwable cause)
      Create an invalid data exception with the specified message.
      public static InvalidDataException create(String msg, Throwable cause) throws IllegalArgumentException
      Create an invalid data exception with the specified message.
      Parameters:
      msg - The message.
      cause - The cause.
      Throws:
      IllegalArgumentException - if msg is empty.
      • Methods inherited from class Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait