public class JDSBusException extends Exception
| 构造器和说明 |
|---|
JDSBusException()
Constructs a build exception with no descriptive information.
|
JDSBusException(String message)
Constructs an exception with the given descriptive message.
|
JDSBusException(String message,
Throwable cause)
Constructs an exception with the given message and exception as
a root cause.
|
JDSBusException(Throwable cause)
Constructs an exception with the given exception as a root cause.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
getCause()
Returns the nested exception, if any.
|
Throwable |
getException()
Returns the nested exception, if any.
|
void |
printStackTrace()
Prints the stack trace for this exception and any
nested exception to
System.err. |
void |
printStackTrace(PrintStream ps)
Prints the stack trace of this exception and any nested
exception to the specified PrintStream.
|
void |
printStackTrace(PrintWriter pw)
Prints the stack trace of this exception and any nested
exception to the specified PrintWriter.
|
String |
toString()
Returns the location of the error and the error message.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTracepublic JDSBusException()
public JDSBusException(String message)
message - A description of or information about the exception.
Should not be null.public JDSBusException(String message, Throwable cause)
message - A description of or information about the exception.
Should not be null unless a cause is specified.cause - The exception that might have caused this one.
May be null.public JDSBusException(Throwable cause)
cause - The exception that might have caused this one.
Should not be null.public Throwable getCause()
public Throwable getException()
null if no
exception is associated with this onepublic String toString()
public void printStackTrace()
System.err.printStackTrace 在类中 Throwablepublic void printStackTrace(PrintStream ps)
printStackTrace 在类中 Throwableps - The PrintStream to print the stack trace to.
Must not be null.public void printStackTrace(PrintWriter pw)
printStackTrace 在类中 Throwablepw - The PrintWriter to print the stack trace to.
Must not be null.Copyright © 2023 onecode. All rights reserved.