Class ErrorResponse
java.lang.Object
org.eclipse.persistence.jpa.rs.exceptions.ErrorResponse
-
Constructor Summary
ConstructorDescriptionInstantiates a new error response.ErrorResponse
(String problemType, String title, String errorCode) Instantiates a new error response. -
Method Summary
Modifier and TypeMethodDescriptionGets the detail.Gets the error code.Gets the error details.Gets the error path.int
Gets the http status.Gets the problem instance.Gets the problem type.Gets the request id.getTitle()
Gets the title.void
Sets the detail.void
setErrorCode
(String errorCode) Sets the error code.void
setErrorDetails
(ErrorResponse errorDetails) Sets the error details.void
setErrorPath
(String errorPath) Sets the error path.void
setHttpStatus
(int httpStatus) Sets the http status.void
setProblemInstance
(String problemInstance) Sets the problem instance.void
setProblemType
(String problemType) Sets the problem type.void
setRequestId
(String requestId) Sets the request unique id.void
Sets the title.
-
Constructor Details
-
ErrorResponse
public ErrorResponse()Instantiates a new error response. -
ErrorResponse
Instantiates a new error response.- Parameters:
problemType
- the problem typetitle
- the titleerrorCode
- the error code
-
-
Method Details
-
getProblemType
Gets the problem type.- Returns:
- the problem type
-
setProblemType
Sets the problem type.- Parameters:
problemType
- the new problem type
-
getTitle
Gets the title.- Returns:
- the title
-
setTitle
Sets the title.- Parameters:
title
- the new title
-
getHttpStatus
public int getHttpStatus()Gets the http status.- Returns:
- the http status
-
setHttpStatus
public void setHttpStatus(int httpStatus) Sets the http status.- Parameters:
httpStatus
- the new http status
-
getDetail
Gets the detail.- Returns:
- the detail
-
setDetail
Sets the detail.- Parameters:
detail
- the new detail
-
getProblemInstance
Gets the problem instance.- Returns:
- the problem instance
-
setProblemInstance
Sets the problem instance.- Parameters:
problemInstance
- the new problem instance
-
getErrorCode
Gets the error code.- Returns:
- the error code
-
setErrorCode
Sets the error code.- Parameters:
errorCode
- the new error code
-
getErrorPath
Gets the error path.- Returns:
- the error path
-
setErrorPath
Sets the error path.- Parameters:
errorPath
- the new error path
-
getErrorDetails
Gets the error details.- Returns:
- the error details
-
setErrorDetails
Sets the error details.- Parameters:
errorDetails
- the new error details
-
getRequestId
Gets the request id.- Returns:
- the request id
-
setRequestId
Sets the request unique id.- Parameters:
requestId
- the new request unique id
-