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

com.nike.riposte.server.error.exception.MethodNotAllowed405Exception Maven / Gradle / Ivy

There is a newer version: 0.20.0
Show newest version
package com.nike.riposte.server.error.exception;

/**
 * Thrown when a request's path matches an endpoint's path, but that endpoint doesn't want to handle the request's HTTP
 * method. Represents a HTTP 405 response code.
 *
 * @author Nic Munroe
 */
public class MethodNotAllowed405Exception extends RuntimeException {

    public final String requestPath;
    public final String requestMethod;

    public MethodNotAllowed405Exception(String message, String requestPath, String requestMethod) {
        super(message);

        this.requestPath = requestPath;
        this.requestMethod = requestMethod;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy