public class TransformException extends 异常
一个TransformException可以包含另一个原因:错误导致TransformException被扔。
| Constructor and Description |
|---|
TransformException()
构建与新
TransformException
null的详细信息。
|
TransformException(String message)
构建指定详细信息的一个新的
TransformException。
|
TransformException(String message, Throwable cause)
构建指定详细信息和产生新的
TransformException。
|
TransformException(Throwable cause)
构建与指定的原因和
(cause==null ? null : cause.toString())详细信息的新
TransformException(通常包含
cause类和详细信息)。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回该
TransformException或
null原因如果原因是不存在的或未知的。
|
void |
printStackTrace()
这
TransformException版画,其回溯和原因的回溯到标准错误流。
|
void |
printStackTrace(PrintStream s)
这
TransformException版画,其回溯和原因的回溯到指定的打印流。
|
void |
printStackTrace(PrintWriter s)
这
TransformException版画,其回溯和原因的回溯到指定打印的作家。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic TransformException()
TransformException
null的详细信息。
public TransformException(String message)
TransformException。
message -详细信息
public TransformException(String message, Throwable cause)
TransformException。
值得注意的是,与cause的详细信息不自动纳入该异常的详细信息。
message -详细信息
cause的原因(一
null值是允许的,并指出原因是不存在的或未知的。)
public TransformException(Throwable cause)
(cause==null ? null : cause.toString())详细信息的新
TransformException(通常包含
cause类和详细信息)。
cause的原因(一
null值是允许的,并指出原因是不存在的或未知的。)
public Throwable getCause()
TransformException或
null原因如果原因是不存在的或未知的。(原因是造成这
TransformException被扔,扔)
public void printStackTrace()
TransformException版画,其回溯和原因的回溯到标准错误流。
printStackTrace 方法重写,继承类
Throwable
public void printStackTrace(PrintStream s)
TransformException版画,其回溯和原因的回溯到指定的打印流。
printStackTrace 方法重写,继承类
Throwable
s -
PrintStream用于输出
public void printStackTrace(PrintWriter s)
TransformException版画,其回溯和原因的回溯到指定打印的作家。
printStackTrace 方法重写,继承类
Throwable
s -
PrintWriter用于输出
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.