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

Class ApplicationException

  • Object
    • Throwable
      • Exception
        • ApplicationException
  • All Implemented Interfaces:
    Serializable
    public class ApplicationException extends Exception
    An exception with an explanation that can be shown to a user. The explanation should be meaningful without the exception class name being visible. Any code that handles this exception should probably also handle ApplicationRuntimeException.
    See Also:
    Serialized Form
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator create Reveal DetailHide Detail
      static ApplicationException create(String message)
      Create an application exception with the specified message.
      public static ApplicationException create(String message)
      Create an application exception with the specified message.
      Parameters:
      msg - The message.
      Throws:
      IllegalArgumentException - if msg is empty.
      Ordinary member indicator create Reveal DetailHide Detail
      static ApplicationException create(String message, String detail)
      Create an application exception with the specified message and optional detail.
      public static ApplicationException create(String message, String detail)
      Create an application exception with the specified message and optional detail.
      Parameters:
      msg - The message.
      detail - An optional detailed description.
      Throws:
      IllegalArgumentException - if msg is empty.
      Ordinary member indicator create Reveal DetailHide Detail
      static ApplicationException create(String message, Throwable cause)
      Create an application exception with the specified message and cause.
      public static ApplicationException create(String message, Throwable cause)
      Create an application exception with the specified message and cause.
      Parameters:
      msg - The message.
      cause - The cause.
      Throws:
      IllegalArgumentException - if msg is empty.
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator getDetail Reveal DetailHide Detail
      String getDetail()
       
      public String getDetail()
      Overridden member indicator toString Reveal DetailHide Detail
      String toString()
      This method returns the exception message (only).
      public String toString()
      This method returns the exception message (only). This choice is for the convenience of reporting the exception.
      Overrides:
      toString in class Throwable
      • Methods inherited from class Throwable

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

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