Interface TreeFailureResponse
A response object that contains details of the tree failure.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFailureDetail
(String key, Object value) Adds a new entry to the failure details.Returns the framework provided default failure message.int
Returns the HTTP response code that will be sent back to the client.void
setCustomFailureMessage
(String failureMessage) Sets the failure message that will be displayed to the user to a custom value.
-
Method Details
-
addFailureDetail
Adds a new entry to the failure details.- Parameters:
key
- The key to add.value
- The value to add.
-
setCustomFailureMessage
Sets the failure message that will be displayed to the user to a custom value.- Parameters:
failureMessage
- The failure message to set.
-
getStatusCode
Returns the HTTP response code that will be sent back to the client.- Returns:
- The HTTP response code.
-
getDefaultMessage
Returns the framework provided default failure message.- Returns:
- The default message.
-