com.nike.riposte.server.error.exception.MethodNotAllowed405Exception Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of riposte-spi Show documentation
Show all versions of riposte-spi Show documentation
Riposte module riposte-spi
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;
}
}