Class JsonPortableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.oracle.coherence.io.json.internal.JsonPortableException
-
- All Implemented Interfaces:
Serializable
public class JsonPortableException extends RuntimeException
AJsonPortableExceptionis 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getFullStackTrace()Return an array of Strings containing the full representation of the stack trace.StringgetMessage()Return the detail message string of this PortableException.StringgetName()Return the name of the exception.voidprintStackTrace(PrintStream stream)Print this PortableException and its stack trace to the specified stream.voidprintStackTrace(PrintWriter writer)Print this PortableException and its stack trace to the specified writer.StringtoString()Return a human-readable description for this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
-
-
-
-
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:
getMessagein classThrowable- 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:
printStackTracein classThrowable- 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:
printStackTracein classThrowable- Parameters:
writer- the PrintWriter to use for the output
-
-