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

fr.ouestfrance.querydsl.postgrest.model.exceptions.PostgrestRequestException Maven / Gradle / Ivy

There is a newer version: 1.4.5
Show newest version
package fr.ouestfrance.querydsl.postgrest.model.exceptions;

/**
 * Runtime exception for querying failure
 */
public class PostgrestRequestException extends RuntimeException {

    /**
     * PostgrestRequestException constructor
     *
     * @param resourceName resource name
     * @param message      cause message
     */
    public PostgrestRequestException(String resourceName, String message) {
        this(resourceName, message, null);
    }


    /**
     * PostgrestRequestException constructor
     *
     * @param resourceName resource name
     * @param message      cause message
     * @param cause        exception raised
     */

    public PostgrestRequestException(String resourceName, String message, Throwable cause) {
        this("Error on querying " + resourceName + " cause by " + message, cause);
    }

    /**
     * PostgrestRequestException constructor
     *
     * @param message cause message
     */
    public PostgrestRequestException(String message) {
        super(message);
    }

    /**
     * PostgrestRequestException constructor
     *
     * @param message cause message
     * @param cause   exception raised
     */
    public PostgrestRequestException(String message, Throwable cause) {
        super(message, cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy