Class ExceptionWrapper


  • public class ExceptionWrapper
    extends java.lang.Object
    This wrapper is used to store the information from an exception like AbortExecutionException. The exception cannot be transmitted over the remoting, since it cannot be guaranteed to match between versions for serialization purposes. Instead, the important information is extracted out of it and wrapped inside this object.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionWrapper​(java.lang.String aMessage, java.lang.String aStackTrace)
      Creates an instance from the raw data.
      ExceptionWrapper​(java.lang.Throwable anException)
      Creates an instance from the exception itself.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.lang.String getStackTrace()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionWrapper

        public ExceptionWrapper​(java.lang.String aMessage,
                                java.lang.String aStackTrace)
        Creates an instance from the raw data.
        Parameters:
        aMessage - the message
        aStackTrace - the stack trace string
      • ExceptionWrapper

        public ExceptionWrapper​(java.lang.Throwable anException)
        Creates an instance from the exception itself.
        Parameters:
        anException - the exception to use as a base
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
      • getStackTrace

        public java.lang.String getStackTrace()