All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play22.api.UsefulException Maven / Gradle / Ivy

The newest version!
package play22.api;

/**
* A UsefulException is something useful to display in the User browser.
*/
public abstract class UsefulException extends RuntimeException {

    /**
     * Exception title.
     */
    public String title;
  
    /**
     * Exception description.
     */
    public String description; 
  
    /**
     * Exception cause if defined.
     */
    public Throwable cause;
  
    /**
     * Unique id for this exception.
     */
    public String id;
  
    public UsefulException(String message, Throwable cause) {
      super(message, cause);
    }
    
    public UsefulException(String message) {
      super(message);
    }

    public String toString() {
        return "@" + id + ": " + title;
    }

} 




© 2015 - 2025 Weber Informatics LLC | Privacy Policy