Class RequestMethodNotAllowedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aspectran.core.context.AspectranRuntimeException
-
- com.aspectran.core.activity.ActivityException
-
- com.aspectran.core.activity.request.RequestException
-
- com.aspectran.core.activity.request.RequestMethodNotAllowedException
-
- All Implemented Interfaces:
java.io.Serializable
public class RequestMethodNotAllowedException extends RequestException
Exception thrown when a request handler does not allow a specific request method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestMethodNotAllowedException()
Instantiates a new RequestMethodNotAllowedException.RequestMethodNotAllowedException(MethodType requestMethod)
Instantiates a new RequestMethodNotAllowedException.RequestMethodNotAllowedException(MethodType requestMethod, java.lang.String msg)
Instantiates a new RequestMethodNotAllowedException.RequestMethodNotAllowedException(java.lang.String msg)
Instantiates a new RequestMethodNotAllowedException.RequestMethodNotAllowedException(java.lang.String msg, java.lang.Throwable cause)
Instantiates a new RequestMethodNotAllowedException.RequestMethodNotAllowedException(java.lang.Throwable cause)
Instantiates a new RequestMethodNotAllowedException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodType
getRequestMethod()
Gets the request method type.
-
-
-
Constructor Detail
-
RequestMethodNotAllowedException
public RequestMethodNotAllowedException()
Instantiates a new RequestMethodNotAllowedException.
-
RequestMethodNotAllowedException
public RequestMethodNotAllowedException(java.lang.String msg)
Instantiates a new RequestMethodNotAllowedException.- Parameters:
msg
- a message to associate with the exception
-
RequestMethodNotAllowedException
public RequestMethodNotAllowedException(java.lang.Throwable cause)
Instantiates a new RequestMethodNotAllowedException.- Parameters:
cause
- the real cause of the exception
-
RequestMethodNotAllowedException
public RequestMethodNotAllowedException(java.lang.String msg, java.lang.Throwable cause)
Instantiates a new RequestMethodNotAllowedException.- Parameters:
msg
- the detail messagecause
- the real cause of the exception
-
RequestMethodNotAllowedException
public RequestMethodNotAllowedException(MethodType requestMethod, java.lang.String msg)
Instantiates a new RequestMethodNotAllowedException.- Parameters:
requestMethod
- the request methodmsg
- the detail message
-
RequestMethodNotAllowedException
public RequestMethodNotAllowedException(MethodType requestMethod)
Instantiates a new RequestMethodNotAllowedException.- Parameters:
requestMethod
- the request method
-
-
Method Detail
-
getRequestMethod
public MethodType getRequestMethod()
Gets the request method type.- Returns:
- the request method type
-
-