org.codehaus.waffle.action
Class ActionMethodException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.codehaus.waffle.WaffleException
                  extended by 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()
           
 
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
 

Constructor Detail

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 to
message - the text to be returned
Method Detail

getStatusCode

public int getStatusCode()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2008. All Rights Reserved.