org.springframework.web
Class HttpRequestMethodNotSupportedException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           javax.servlet.ServletException
javax.servlet.ServletException
               org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException
- All Implemented Interfaces: 
- Serializable
- public class HttpRequestMethodNotSupportedException 
- extends ServletException
Exception thrown when a request handler does not support a
 specific request method.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
 
| Method Summary | 
|  String | getMethod()Return the HTTP request method that caused the failure.
 | 
 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
HttpRequestMethodNotSupportedException
public HttpRequestMethodNotSupportedException(String method)
- Create a new HttpRequestMethodNotSupportedException.
 
- Parameters:
- method- the unsupported HTTP request method
 
HttpRequestMethodNotSupportedException
public HttpRequestMethodNotSupportedException(String method,
                                              String msg)
- Create a new HttpRequestMethodNotSupportedException.
 
- Parameters:
- method- the unsupported HTTP request method
- msg- the detail message
 
getMethod
public String getMethod()
- Return the HTTP request method that caused the failure.
 
- 
 
Copyright © 2002-2007 The Spring Framework.