public static class Exceptions.JsonInternalException
extends JsonException
Runtime exception used inside the JSON internals to simplify propagation.
| Constructor and description |
|---|
JsonInternalException(String message)Creates an exception with the supplied message. |
JsonInternalException(String message, Throwable cause)Creates an exception with the supplied message and cause. |
JsonInternalException(Throwable cause)Creates an exception that wraps another throwable. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Throwable |
getCause()Returns the wrapped cause. |
|
public String |
getLocalizedMessage()Returns the localized message. |
|
public String |
getMessage()Returns the message, including the wrapped cause summary when present. |
|
public StackTraceElement[] |
getStackTrace()Returns the wrapped stack trace when a cause is present. |
|
public void |
printStackTrace(PrintStream s)Prints the wrapped stack trace to the supplied stream. |
|
public void |
printStackTrace(PrintWriter s)Prints the wrapped stack trace to the supplied writer. |
|
public void |
printStackTrace()Logs the wrapped stack trace. |
Creates an exception with the supplied message.
message - the exception messageCreates an exception with the supplied message and cause.
message - the exception messagecause - the wrapped causeCreates an exception that wraps another throwable.
cause - the wrapped causeReturns the wrapped cause.
nullReturns the localized message.
Returns the message, including the wrapped cause summary when present.
Returns the wrapped stack trace when a cause is present.
Prints the wrapped stack trace to the supplied stream.
s - the target streamPrints the wrapped stack trace to the supplied writer.
s - the target writerLogs the wrapped stack trace.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.