public class OpenBankingErrorResponse extends java.lang.Object
Constructor and Description |
---|
OpenBankingErrorResponse(int statusCode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Get the error message that will be returned in the HTTP response body.
|
int |
getStatus()
Get the HTTP status code to be returned in the client response.
|
void |
setErrorMessage(java.lang.String errorMessage)
Set the error message to be returned in the HTTP response body.
|
public OpenBankingErrorResponse(int statusCode)
statusCode
- The HTTP status code to be returned to the client.public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- An error message explaining the reason the request
was denied.public int getStatus()