Class ErrorResponse
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.exceptions.ErrorResponse
-
public class ErrorResponse extends Object
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
Instantiates a new error response.ErrorResponse(String problemType, String title, String errorCode)
Instantiates a new error response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDetail()
Gets the detail.String
getErrorCode()
Gets the error code.ErrorResponse
getErrorDetails()
Gets the error details.String
getErrorPath()
Gets the error path.int
getHttpStatus()
Gets the http status.String
getProblemInstance()
Gets the problem instance.String
getProblemType()
Gets the problem type.String
getRequestId()
Gets the request id.String
getTitle()
Gets the title.void
setDetail(String detail)
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
setTitle(String title)
Sets the title.
-
-
-
Method Detail
-
getProblemType
public String getProblemType()
Gets the problem type.- Returns:
- the problem type
-
setProblemType
public void setProblemType(String problemType)
Sets the problem type.- Parameters:
problemType
- the new problem type
-
getTitle
public String getTitle()
Gets the title.- Returns:
- the title
-
setTitle
public void setTitle(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 String getDetail()
Gets the detail.- Returns:
- the detail
-
setDetail
public void setDetail(String detail)
Sets the detail.- Parameters:
detail
- the new detail
-
getProblemInstance
public String getProblemInstance()
Gets the problem instance.- Returns:
- the problem instance
-
setProblemInstance
public void setProblemInstance(String problemInstance)
Sets the problem instance.- Parameters:
problemInstance
- the new problem instance
-
getErrorCode
public String getErrorCode()
Gets the error code.- Returns:
- the error code
-
setErrorCode
public void setErrorCode(String errorCode)
Sets the error code.- Parameters:
errorCode
- the new error code
-
getErrorPath
public String getErrorPath()
Gets the error path.- Returns:
- the error path
-
setErrorPath
public void setErrorPath(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 String getRequestId()
Gets the request id.- Returns:
- the request id
-
setRequestId
public void setRequestId(String requestId)
Sets the request unique id.- Parameters:
requestId
- the new request unique id
-
-