Package play.api

Class UsefulException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    PlayException

    public abstract class UsefulException
    extends java.lang.RuntimeException
    A UsefulException is something useful to display in the User browser.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Throwable cause
      Exception cause if defined.
      java.lang.String description
      Exception description.
      java.lang.String id
      Unique id for this exception.
      java.lang.String title
      Exception title.
    • Constructor Summary

      Constructors 
      Constructor Description
      UsefulException​(java.lang.String message)  
      UsefulException​(java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

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

      • title

        public java.lang.String title
        Exception title.
      • description

        public java.lang.String description
        Exception description.
      • cause

        public java.lang.Throwable cause
        Exception cause if defined.
      • id

        public java.lang.String id
        Unique id for this exception.
    • Constructor Detail

      • UsefulException

        public UsefulException​(java.lang.String message,
                               java.lang.Throwable cause)
      • UsefulException

        public UsefulException​(java.lang.String message)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable