public class SwingException extends Exception
Modifier and Type | Field and Description |
---|---|
protected StackTraceElement[] |
callingStackTrace |
Constructor and Description |
---|
SwingException()
Default constructor
|
SwingException(String message)
Constructor for compatibility with Exception.
|
SwingException(String message,
Throwable cause)
Constructor for compatibility with Exception Use ClientException(String, Throwable, StackTraceElement[]) instead
|
SwingException(String message,
Throwable cause,
StackTraceElement[] callingStack)
Preferred constructor.
|
SwingException(Throwable cause)
Constructor for compatibility with Exception Use ClientException(String, Throwable, StackTraceElement[]) instead
|
Modifier and Type | Method and Description |
---|---|
StackTraceElement[] |
getCallingStack()
Client exceptions often have two stacks - one thread causes the posting of an action on another thread - usually
the Swing EDT thread.
|
void |
printStackTrace(PrintStream ps)
Calls printWriter(ps, true)
|
void |
printStackTrace(PrintWriter pw)
Prints the calling stack and the exception stack trace.
|
void |
setCallingStack(StackTraceElement[] swingCallingStack)
Swing exceptions often have two stacks - one thread causes the posting of an action on another thread - usually
the Swing EDT thread.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
protected StackTraceElement[] callingStackTrace
public SwingException()
public SwingException(String message)
public SwingException(Throwable cause)
public SwingException(String message, Throwable cause)
public SwingException(String message, Throwable cause, StackTraceElement[] callingStack)
message
- The message of exceptioncause
- The cause of the exception in the same call stackcallingStack
- the stack trace that the client used to call the exception to occur.public void setCallingStack(StackTraceElement[] swingCallingStack)
swingCallingStack
- the stack trace that the client used to cause the exception to occur.public StackTraceElement[] getCallingStack()
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
ps
- the print streampublic void printStackTrace(PrintWriter pw)
printStackTrace
in class Throwable
pw
- Copyright © 2013 Bushe Enterprises, Inc.. All rights reserved.