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
,java.io.Serializable
public class CmsUgcException extends CmsRpcException
Exception class for use in the org.opencms.editors.usergenerated module.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsUgcException()
Default constructor for serialization.CmsUgcException(java.lang.Throwable t)
Creates a new instance.CmsUgcException(java.lang.Throwable t, CmsUgcConstants.ErrorCode errorCode, java.lang.String message)
Creates a new instance.CmsUgcException(CmsUgcConstants.ErrorCode errorCode, java.lang.String message)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsUgcConstants.ErrorCode
getErrorCode()
Returns the errorCode.java.lang.String
getUserMessage()
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
-
-
-
-
Constructor Detail
-
CmsUgcException
public CmsUgcException(CmsUgcConstants.ErrorCode errorCode, java.lang.String message)
Creates a new instance.- Parameters:
errorCode
- the error typemessage
- the error message
-
CmsUgcException
public CmsUgcException(java.lang.Throwable t)
Creates a new instance.- Parameters:
t
- the wrapped exception
-
CmsUgcException
public CmsUgcException(java.lang.Throwable t, CmsUgcConstants.ErrorCode errorCode, java.lang.String message)
Creates a new instance.- Parameters:
t
- the original exceptionerrorCode
- the error typemessage
- the error message
-
CmsUgcException
protected CmsUgcException()
Default constructor for serialization.
-
-
Method Detail
-
getErrorCode
public CmsUgcConstants.ErrorCode getErrorCode()
Returns the errorCode.- Returns:
- the errorCode
-
getUserMessage
public java.lang.String getUserMessage()
Gets the human-readable message.- Returns:
- the human-readable message
-
setErrorCode
public void setErrorCode(CmsUgcConstants.ErrorCode errorCode)
Sets the errorCode.- Parameters:
errorCode
- the errorCode to set
-
-