Class JsonPortableException

  • All Implemented Interfaces:
    Serializable

    public class JsonPortableException
    extends RuntimeException
    A JsonPortableException is an exception that allows information about a remote exception or error to be serialized and deserialized to/from a JSON stream.
    Since:
    20.06
    Author:
    Jonathan Knight 2018.11.28
    See Also:
    Serialized Form
    • Field Detail

      • f_sName

        protected final String f_sName
        The exception's name.
      • f_sMessage

        protected final String f_sMessage
        The exception's message.
      • f_asStack

        protected final String[] f_asStack
        A raw representation of the remote stack trace for this exception.
    • Method Detail

      • getName

        public String getName()
        Return the name of the exception.
        Returns:
        the name of the exception
      • getFullStackTrace

        public String[] getFullStackTrace()
        Return an array of Strings containing the full representation of the stack trace. The first element of the stack represents the exception's point of origin.
        Returns:
        the full stack trace
      • getMessage

        public String getMessage()
        Return the detail message string of this PortableException.
        Overrides:
        getMessage in class Throwable
        Returns:
        the detail message string (may be null)
      • printStackTrace

        public void printStackTrace​(PrintStream stream)
        Print this PortableException and its stack trace to the specified stream.
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        stream - the PrintStream to use for the output
      • printStackTrace

        public void printStackTrace​(PrintWriter writer)
        Print this PortableException and its stack trace to the specified writer.
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        writer - the PrintWriter to use for the output
      • toString

        public String toString()
        Return a human-readable description for this exception.
        Overrides:
        toString in class Throwable
        Returns:
        a String description of the PortableException