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

Class InvalidDataRuntimeException

  • Object
    • Throwable
      • Exception
        • RuntimeException
          • InvalidDataRuntimeException
  • All Implemented Interfaces:
    Serializable
    public final class InvalidDataRuntimeException extends RuntimeException
    An invalid data exception for situations where only unchecked exceptions are permitted (for example, in an iterator).

    This exception is 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.

    See Also:
    Serialized Form
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator create Reveal DetailHide Detail
      static InvalidDataRuntimeException create(String msg)
      Create an invalid data exception with the specified message.
      public static InvalidDataRuntimeException 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 InvalidDataRuntimeException create(String msg, Throwable cause)
      Create an invalid data exception with the specified message.
      public static InvalidDataRuntimeException 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