Package org.apache.tapestry5.services
Class HttpError
java.lang.Object
org.apache.tapestry5.services.HttpError
An event handler method may return an instance of this class to send an error response to the client.
If you need something similar but not for errors, such as statuses in the 2xx range,
use
instead
.- Since:
- 5.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns error message.int
Returns the error status code.
-
Constructor Details
-
HttpError
-
-
Method Details
-
getStatusCode
Returns the error status code. -
getMessage
Returns error message.
-