Package org.opencms.ugc.shared
Class CmsUgcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opencms.gwt.CmsRpcException
org.opencms.ugc.shared.CmsUgcException
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,Serializable
Exception class for use in the org.opencms.editors.usergenerated module.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor for serialization.Creates a new instance.CmsUgcException
(Throwable t, CmsUgcConstants.ErrorCode errorCode, String message) Creates a new instance.CmsUgcException
(CmsUgcConstants.ErrorCode errorCode, String message) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the errorCode.Gets the human-readable message.void
setErrorCode
(CmsUgcConstants.ErrorCode errorCode) Sets the errorCode.Methods inherited from class org.opencms.gwt.CmsRpcException
getOriginalCauseMessage, getOriginalClassName, getOriginalMessage, getOriginalStackTrace, setOriginalCauseMessage, setOriginalClassName, setOriginalMessage, setOriginalStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CmsUgcException
Creates a new instance.- Parameters:
t
- the wrapped exception
-
CmsUgcException
protected CmsUgcException()Default constructor for serialization.
-
Method Details
-
getErrorCode
Returns the errorCode.- Returns:
- the errorCode
-
getUserMessage
Gets the human-readable message.- Returns:
- the human-readable message
-