Class RemoteSpawnException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RemoteSpawnException
    extends java.lang.RuntimeException
    Wraps up a non-RuntimeException into a runtime exception that can be ignored or caught and rethrown if required.
    Author:
    Quickstone Technologies Limited
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Throwable cause
      The actual exception.
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteSpawnException​(java.lang.Throwable cause)
      Constructs a new exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void printStackTrace()
      Prints the stack trace of the actual exception.
      void rethrow()
      Rethrows the actual exception.
      java.lang.String toString()
      Returns a string representation of the actual exception.
      • Methods inherited from class java.lang.Throwable

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cause

        public final java.lang.Throwable cause
        The actual exception.
    • Constructor Detail

      • RemoteSpawnException

        public RemoteSpawnException​(java.lang.Throwable cause)
        Constructs a new exception.
        Parameters:
        cause - the actual exception.
    • Method Detail

      • rethrow

        public void rethrow()
                     throws java.lang.Throwable
        Rethrows the actual exception.
        Throws:
        java.lang.Throwable
      • printStackTrace

        public void printStackTrace()
        Prints the stack trace of the actual exception.
        Overrides:
        printStackTrace in class java.lang.Throwable
      • toString

        public java.lang.String toString()
        Returns a string representation of the actual exception.
        Overrides:
        toString in class java.lang.Throwable