Class SnapshotException

    • Constructor Detail

      • SnapshotException

        public SnapshotException()
        Create snapshot exception - should not be used except during deserialization.
      • SnapshotException

        public SnapshotException​(String message,
                                 Throwable cause)
        Create snapshot exception with message and root cause.
        Parameters:
        message - the message for the exception
        cause - the original exception
      • SnapshotException

        public SnapshotException​(String message)
        Create snapshot exception with message only.
        Parameters:
        message - the message for the exception
      • SnapshotException

        public SnapshotException​(Throwable cause)
        Create snapshot exception with root cause only.
        Parameters:
        cause - the original exception
    • Method Detail

      • rethrow

        public static final SnapshotException rethrow​(Throwable e)
        Wrap, if necessary, and return a SnapshotException.
        Parameters:
        e - the original exception
        Returns:
        a new exception to throw