Class SaRMIBaseException

    • Field Summary

      • Fields inherited from class java.rmi.RemoteException

        detail
    • 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.
      • Methods inherited from class java.rmi.RemoteException

        getCause, getMessage
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 message
        cause - 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