public class ErrorResponse
extends java.lang.Object
Constructor and Description |
---|
ErrorResponse()
Instantiates a new error response.
|
ErrorResponse(java.lang.String problemType,
java.lang.String title,
java.lang.String errorCode)
Instantiates a new error response.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDetail()
Gets the detail.
|
java.lang.String |
getErrorCode()
Gets the error code.
|
ErrorResponse |
getErrorDetails()
Gets the error details.
|
java.lang.String |
getErrorPath()
Gets the error path.
|
int |
getHttpStatus()
Gets the http status.
|
java.lang.String |
getProblemInstance()
Gets the problem instance.
|
java.lang.String |
getProblemType()
Gets the problem type.
|
java.lang.String |
getRequestId()
Gets the request id.
|
java.lang.String |
getTitle()
Gets the title.
|
void |
setDetail(java.lang.String detail)
Sets the detail.
|
void |
setErrorCode(java.lang.String errorCode)
Sets the error code.
|
void |
setErrorDetails(ErrorResponse errorDetails)
Sets the error details.
|
void |
setErrorPath(java.lang.String errorPath)
Sets the error path.
|
void |
setHttpStatus(int httpStatus)
Sets the http status.
|
void |
setProblemInstance(java.lang.String problemInstance)
Sets the problem instance.
|
void |
setProblemType(java.lang.String problemType)
Sets the problem type.
|
void |
setRequestId(java.lang.String requestId)
Sets the request unique id.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
public ErrorResponse()
public ErrorResponse(java.lang.String problemType, java.lang.String title, java.lang.String errorCode)
problemType
- the problem typetitle
- the titleerrorCode
- the error codepublic java.lang.String getProblemType()
public void setProblemType(java.lang.String problemType)
problemType
- the new problem typepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the new titlepublic int getHttpStatus()
public void setHttpStatus(int httpStatus)
httpStatus
- the new http statuspublic java.lang.String getDetail()
public void setDetail(java.lang.String detail)
detail
- the new detailpublic java.lang.String getProblemInstance()
public void setProblemInstance(java.lang.String problemInstance)
problemInstance
- the new problem instancepublic java.lang.String getErrorCode()
public void setErrorCode(java.lang.String errorCode)
errorCode
- the new error codepublic java.lang.String getErrorPath()
public void setErrorPath(java.lang.String errorPath)
errorPath
- the new error pathpublic ErrorResponse getErrorDetails()
public void setErrorDetails(ErrorResponse errorDetails)
errorDetails
- the new error detailspublic java.lang.String getRequestId()
public void setRequestId(java.lang.String requestId)
requestId
- the new request unique id