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

play.exceptions.DatabaseException Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version

package play.exceptions;

/**
 * Database error
 */
public class DatabaseException extends PlayExceptionWithJavaSource {
    
    public DatabaseException(String message) {
        super(message);
    }
    
    public DatabaseException(String message, Throwable cause) {
        super(message, cause);
    }

    @Override
    public String getErrorTitle() {
        return "Database error";
    }

    @Override
    public String getErrorDescription() {
        return String.format("A database error occured : %s", getMessage());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy