程序包 cn.taketoday.web

类 HttpRequestMethodNotSupportedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.web.HttpRequestMethodNotSupportedException
所有已实现的接口:
HttpStatusCodeProvider, ErrorResponse, Serializable

public class HttpRequestMethodNotSupportedException extends cn.taketoday.core.NestedRuntimeException implements ErrorResponse
Exception thrown when a request handler does not support a specific request method.
从以下版本开始:
4.0 2022/1/29 10:29
作者:
Juergen Hoeller, Harry Yang
另请参阅:
  • 字段详细资料

    • method

      private final String method
    • supportedMethods

      @Nullable private final String[] supportedMethods
    • body

      private final ProblemDetail body
  • 构造器详细资料

    • HttpRequestMethodNotSupportedException

      public HttpRequestMethodNotSupportedException(String method)
      Create a new HttpRequestMethodNotSupportedException.
      参数:
      method - the unsupported HTTP request method
    • HttpRequestMethodNotSupportedException

      public HttpRequestMethodNotSupportedException(String method, String msg)
      Create a new HttpRequestMethodNotSupportedException.
      参数:
      method - the unsupported HTTP request method
      msg - the detail message
    • HttpRequestMethodNotSupportedException

      public HttpRequestMethodNotSupportedException(String method, @Nullable Collection<String> supportedMethods)
      Create a new HttpRequestMethodNotSupportedException.
      参数:
      method - the unsupported HTTP request method
      supportedMethods - the actually supported HTTP methods (may be null)
    • HttpRequestMethodNotSupportedException

      public HttpRequestMethodNotSupportedException(String method, @Nullable String[] supportedMethods)
      Create a new HttpRequestMethodNotSupportedException.
      参数:
      method - the unsupported HTTP request method
      supportedMethods - the actually supported HTTP methods (may be null)
    • HttpRequestMethodNotSupportedException

      public HttpRequestMethodNotSupportedException(String method, @Nullable String[] supportedMethods, String msg)
      Create a new HttpRequestMethodNotSupportedException.
      参数:
      method - the unsupported HTTP request method
      supportedMethods - the actually supported HTTP methods
      msg - the detail message
  • 方法详细资料