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

play.api.UsefulException Maven / Gradle / Ivy

There is a newer version: 2.9.6
Show newest version
/*
 * Copyright (C) 2009-2016 Lightbend Inc. 
 */
package play.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