Package com.saperion.rmi.serverexception
Class SaRMIBaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.rmi.RemoteException
-
- com.saperion.rmi.serverexception.SaRMIBaseException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SaRMIAuthenticationException
,SaRMIDBException
,SaRMIDDCException
,SaRMIFolderException
,SaRMIGetNodeException
,SaRMIHibernateExeption
,SaRMILockException
,SaRMIPropertyException
,SaRMISapException
,SaRMISearchFieldException
,SaRMISetACLException
,SaRMISetContentException
,SaRMISetNodeException
,SaRMISQLException
,SaRMISystemException
,SaRMIUniqueConstraintViolationException
,SaRMIWorkflowException
public class SaRMIBaseException extends java.rmi.RemoteException
Base Exception for RemoteException.- Author:
- lav TODO [mak]: think about introduction of a SaRMIParseException, which handles XML parser errors
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SaRMIBaseException()
SaRMIBaseException(java.lang.String s)
SaRMIBaseException(java.lang.String s, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getStackTraceString(java.lang.Throwable exception)
Converts the stack trace of the given exception to String.
-
-
-
Constructor Detail
-
SaRMIBaseException
public SaRMIBaseException()
-
SaRMIBaseException
public SaRMIBaseException(java.lang.String s)
- Parameters:
s
- exception message
-
SaRMIBaseException
public SaRMIBaseException(java.lang.String s, java.lang.Throwable cause)
- Parameters:
s
- exception messagecause
- throwed exception
-
-
Method Detail
-
getStackTraceString
public static java.lang.String getStackTraceString(java.lang.Throwable exception)
Converts the stack trace of the given exception to String. It is used to map a stack trace from a lower level exception as message to a higher level remote exception, example: s
try {
...
} catch (SaJNIException e) {
throw new SaRMISystemException(SaRMISystemException.getStackTraceString(e));
}- Parameters:
exception
- exception to be converted- Returns:
- exception stack trace as string
-
-