Class ErrorResponseData
- java.lang.Object
-
- de.xima.fc.api.rest.impl.common.error.ErrorResponseData
-
public class ErrorResponseData extends Object
Bean that wraps some basic error information to be delivered as error response by the REST API.- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ErrorResponseData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorCode()
String
getErrorMessage()
String
getPath()
ErrorResponseData
setErrorCode(String errorCode)
ErrorResponseData
setErrorMessage(String errorMessage)
ErrorResponseData
setPath(String path)
-
-
-
Method Detail
-
getPath
public String getPath()
- Returns:
- the request path
-
setPath
public ErrorResponseData setPath(String path)
- Parameters:
path
- the request path- Returns:
- this
-
getErrorCode
public String getErrorCode()
- Returns:
- technical error code
-
setErrorCode
public ErrorResponseData setErrorCode(String errorCode)
- Parameters:
errorCode
- technical error code- Returns:
- this
-
getErrorMessage
public String getErrorMessage()
- Returns:
- the (usually localized) detailed error message for the end user
-
setErrorMessage
public ErrorResponseData setErrorMessage(String errorMessage)
- Parameters:
errorMessage
- the (usually localized) detailed error message for the end user- Returns:
- this
-
-