Class ErrorStatus
- java.lang.Object
-
- org.hippoecm.hst.pagecomposer.jaxrs.model.ErrorStatus
-
public class ErrorStatus extends Object
-
-
Constructor Summary
Constructors Constructor Description ErrorStatus(ClientError error)
ErrorStatus(ClientError errorCode, Map<?,?> parameterMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorStatus
from(ClientError errorCode)
static ErrorStatus
from(ClientError errorCode, String paramName, Object paramValue)
static ErrorStatus
from(ClientError errorCode, Map<?,?> parameterMap)
ClientError
getError()
Map<?,?>
getParameterMap()
static ErrorStatus
unknown(String message)
Create anClientError.UNKNOWN
error status that contains an error message in the parameter 'errorReason'
-
-
-
Constructor Detail
-
ErrorStatus
public ErrorStatus(ClientError error)
-
ErrorStatus
public ErrorStatus(ClientError errorCode, Map<?,?> parameterMap)
-
-
Method Detail
-
getError
public ClientError getError()
-
getParameterMap
public Map<?,?> getParameterMap()
-
from
public static ErrorStatus from(ClientError errorCode)
-
from
public static ErrorStatus from(ClientError errorCode, String paramName, Object paramValue)
-
from
public static ErrorStatus from(ClientError errorCode, Map<?,?> parameterMap)
-
unknown
public static ErrorStatus unknown(String message)
Create anClientError.UNKNOWN
error status that contains an error message in the parameter 'errorReason'- Parameters:
message
- text describing the error- Returns:
- an 'unknown' error status with errorReason message
-
-