Class ErrorResponse
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.exceptions.ErrorResponse
-
public class ErrorResponse extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDetail()Gets the detail.java.lang.StringgetErrorCode()Gets the error code.ErrorResponsegetErrorDetails()Gets the error details.java.lang.StringgetErrorPath()Gets the error path.intgetHttpStatus()Gets the http status.java.lang.StringgetProblemInstance()Gets the problem instance.java.lang.StringgetProblemType()Gets the problem type.java.lang.StringgetRequestId()Gets the request id.java.lang.StringgetTitle()Gets the title.voidsetDetail(java.lang.String detail)Sets the detail.voidsetErrorCode(java.lang.String errorCode)Sets the error code.voidsetErrorDetails(ErrorResponse errorDetails)Sets the error details.voidsetErrorPath(java.lang.String errorPath)Sets the error path.voidsetHttpStatus(int httpStatus)Sets the http status.voidsetProblemInstance(java.lang.String problemInstance)Sets the problem instance.voidsetProblemType(java.lang.String problemType)Sets the problem type.voidsetRequestId(java.lang.String requestId)Sets the request unique id.voidsetTitle(java.lang.String title)Sets the title.
-
-
-
Constructor Detail
-
ErrorResponse
public ErrorResponse()
Instantiates a new error response.
-
ErrorResponse
public ErrorResponse(java.lang.String problemType, java.lang.String title, java.lang.String errorCode)Instantiates a new error response.- Parameters:
problemType- the problem typetitle- the titleerrorCode- the error code
-
-
Method Detail
-
getProblemType
public java.lang.String getProblemType()
Gets the problem type.- Returns:
- the problem type
-
setProblemType
public void setProblemType(java.lang.String problemType)
Sets the problem type.- Parameters:
problemType- the new problem type
-
getTitle
public java.lang.String getTitle()
Gets the title.- Returns:
- the title
-
setTitle
public void setTitle(java.lang.String title)
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
public java.lang.String getDetail()
Gets the detail.- Returns:
- the detail
-
setDetail
public void setDetail(java.lang.String detail)
Sets the detail.- Parameters:
detail- the new detail
-
getProblemInstance
public java.lang.String getProblemInstance()
Gets the problem instance.- Returns:
- the problem instance
-
setProblemInstance
public void setProblemInstance(java.lang.String problemInstance)
Sets the problem instance.- Parameters:
problemInstance- the new problem instance
-
getErrorCode
public java.lang.String getErrorCode()
Gets the error code.- Returns:
- the error code
-
setErrorCode
public void setErrorCode(java.lang.String errorCode)
Sets the error code.- Parameters:
errorCode- the new error code
-
getErrorPath
public java.lang.String getErrorPath()
Gets the error path.- Returns:
- the error path
-
setErrorPath
public void setErrorPath(java.lang.String errorPath)
Sets the error path.- Parameters:
errorPath- the new error path
-
getErrorDetails
public ErrorResponse getErrorDetails()
Gets the error details.- Returns:
- the error details
-
setErrorDetails
public void setErrorDetails(ErrorResponse errorDetails)
Sets the error details.- Parameters:
errorDetails- the new error details
-
getRequestId
public java.lang.String getRequestId()
Gets the request id.- Returns:
- the request id
-
setRequestId
public void setRequestId(java.lang.String requestId)
Sets the request unique id.- Parameters:
requestId- the new request unique id
-
-