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

org.resthub.web.exception.InternalServerErrorClientException Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.resthub.web.exception;

import org.resthub.web.Http;

/**
 * Exception mapped to Internal Server Error HTTP status code (500)
 */
@SuppressWarnings("serial")
public class InternalServerErrorClientException extends ClientException {

    public InternalServerErrorClientException() {
        super();
        this.setStatusCode(Http.INTERNAL_SERVER_ERROR);
    }

    public InternalServerErrorClientException(final String message, final Throwable cause) {
        super(message, cause);
        this.setStatusCode(Http.INTERNAL_SERVER_ERROR);
    }

    public InternalServerErrorClientException(final String message) {
        super(message);
        this.setStatusCode(Http.INTERNAL_SERVER_ERROR);
    }

    public InternalServerErrorClientException(final Throwable cause) {
        super(cause);
        this.setStatusCode(Http.INTERNAL_SERVER_ERROR);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy