Package org.nuxeo.ecm.core.api
Class RecoverableClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.nuxeo.ecm.core.api.NuxeoException
-
- org.nuxeo.ecm.core.api.RecoverableClientException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OperationNotAllowedException
,QuotaExceededException
public class RecoverableClientException extends NuxeoException
Exception that can be handled at UI level to display a dedicated user message- Since:
- 5.6
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecoverableClientException.Severity
-
Field Summary
Fields Modifier and Type Field Description protected String
localizedMessage
protected String[]
params
protected RecoverableClientException.Severity
severity
-
Fields inherited from class org.nuxeo.ecm.core.api.NuxeoException
statusCode
-
-
Constructor Summary
Constructors Constructor Description RecoverableClientException(String message, String localizedMessage, String[] params)
RecoverableClientException(String message, String localizedMessage, String[] params, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
geLocalizedMessageParams()
String
getLocalizedMessage()
RecoverableClientException.Severity
getSeverity()
void
setSeverity(RecoverableClientException.Severity severity)
-
Methods inherited from class org.nuxeo.ecm.core.api.NuxeoException
addInfo, getInfos, getMessage, getOriginalMessage, getStatusCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
localizedMessage
protected final String localizedMessage
-
params
protected final String[] params
-
severity
protected RecoverableClientException.Severity severity
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classThrowable
-
geLocalizedMessageParams
public String[] geLocalizedMessageParams()
-
getSeverity
public RecoverableClientException.Severity getSeverity()
-
setSeverity
public void setSeverity(RecoverableClientException.Severity severity)
-
-