public class MarshalException extends 异常
一个MarshalException可以包含另一个原因:错误导致MarshalException被扔。
| Constructor and Description |
|---|
MarshalException()
构建与新
MarshalException
null的详细信息。
|
MarshalException(String message)
构建指定详细信息的一个新的
MarshalException。
|
MarshalException(String message, Throwable cause)
构建指定详细信息和产生新的
MarshalException。
|
MarshalException(Throwable cause)
构建与指定的原因和
(cause==null ? null : cause.toString()) 详细信息的新
MarshalException(通常包含
cause类和详细信息)。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回该
MarshalException或
null原因如果原因是不存在的或未知的。
|
void |
printStackTrace()
这
MarshalException版画,其回溯和原因的回溯到标准错误流。
|
void |
printStackTrace(PrintStream s)
这
MarshalException版画,其回溯和原因的回溯到指定的打印流。
|
void |
printStackTrace(PrintWriter s)
这
MarshalException版画,其回溯和原因的回溯到指定打印的作家。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic MarshalException()
MarshalException
null的详细信息。
public MarshalException(String message)
MarshalException。
message -详细信息
public MarshalException(String message, Throwable cause)
MarshalException。
值得注意的是,与cause的详细信息不自动纳入该异常的详细信息。
message -详细信息
cause的原因(一
null值是允许的,并指出原因是不存在的或未知的。)
public MarshalException(Throwable cause)
(cause==null ? null : cause.toString()) 详细信息的新
MarshalException(通常包含
cause类和详细信息)。
cause的原因(一
null值是允许的,并指出原因是不存在的或未知的。)
public Throwable getCause()
MarshalException或
null原因如果原因是不存在的或未知的。(原因是造成这
MarshalException被扔,扔)
public void printStackTrace()
MarshalException版画,其回溯和原因的回溯到标准错误流。
printStackTrace 方法重写,继承类
Throwable
public void printStackTrace(PrintStream s)
MarshalException版画,其回溯和原因的回溯到指定的打印流。
printStackTrace 方法重写,继承类
Throwable
s -
PrintStream用于输出
public void printStackTrace(PrintWriter s)
MarshalException版画,其回溯和原因的回溯到指定打印的作家。
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.