org.codehaus.waffle.action
Class ActionMethodException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codehaus.waffle.WaffleException
org.codehaus.waffle.action.ActionMethodException
- All Implemented Interfaces:
- java.io.Serializable
public class ActionMethodException
- extends WaffleException
This is a specialized exception that will be thrown directly from an ActionMethod. Exceptions of this type
will set the response statusCode code and response body.
- See Also:
- Serialized Form
Constructor Summary |
ActionMethodException(int statusCode,
java.lang.String message)
An expected error has occurred the requestor should be notified with the appropriate status and message. |
Method Summary |
java.lang.String |
getMessage()
|
int |
getStatusCode()
Returns the the javax.servlet.http.HttpServletResponse status should be set to. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActionMethodException
public ActionMethodException(int statusCode,
java.lang.String message)
- An expected error has occurred the requestor should be notified with the appropriate status and message.
- Parameters:
statusCode
- the value the response status should be set tomessage
- the text to be returned
getStatusCode
public int getStatusCode()
- Returns the the
javax.servlet.http.HttpServletResponse
status should be set to.
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
Copyright © 2008. All Rights Reserved.