Package org.opencms.gwt
Class CmsRpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opencms.gwt.CmsRpcException
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,Serializable
- Direct Known Subclasses:
CmsUgcException
public class CmsRpcException
extends Exception
implements com.google.gwt.user.client.rpc.IsSerializable
GWT RPC Exception. Wrapper for exceptions thrown while processing a RPC request.
As of the current state of exception serialization within GWT, details of the original throwable are kept to be available on the client.
- Since:
- 8.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor.Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the cause message.Returns the original class name.Returns the original message.Returns the original stack trace.protected void
setOriginalCauseMessage
(String originalCauseMessage) Sets the original cause message.void
setOriginalClassName
(String originalClassName) Sets the original class name.void
setOriginalMessage
(String originalMessage) Sets the original message.protected void
setOriginalStackTrace
(StackTraceElement[] trace) Sets the original stack trace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CmsRpcException
public CmsRpcException()Default constructor. -
CmsRpcException
Default constructor.- Parameters:
t
- the cause
-
-
Method Details
-
getOriginalCauseMessage
Returns the cause message.- Returns:
- the cause message
-
getOriginalClassName
Returns the original class name.- Returns:
- the original class name
-
getOriginalMessage
Returns the original message.- Returns:
- the original message
-
getOriginalStackTrace
Returns the original stack trace.- Returns:
- the original stack trace
-
setOriginalClassName
Sets the original class name.- Parameters:
originalClassName
- the original class name to set
-
setOriginalMessage
Sets the original message.- Parameters:
originalMessage
- the original message to set
-
setOriginalCauseMessage
Sets the original cause message.- Parameters:
originalCauseMessage
- the original cause message
-
setOriginalStackTrace
Sets the original stack trace.- Parameters:
trace
- the original stack trace
-