java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.xml.crypto.MarshalException
public class MarshalException
     指示 XML 编组或解组过程中发生的异常条件。
MarshalException 可以包含一个 cause:另一个导致抛出此 MarshalException 的 throwable。 
XMLSignature.sign(XMLSignContext), 
    XMLSignatureFactory.unmarshalXMLSignature(XMLValidateContext), 
    序列化表格
   | 构造方法摘要 | |
|---|---|
MarshalException() 构造使用 null 作为其详细消息的新 MarshalException。 |  
    |
MarshalException(String message) 构造带指定详细消息的新 MarshalException。 |  
    |
MarshalException(String message, Throwable cause) 构造一个带指定详细消息和 cause 的新 MarshalException。 |  
    |
MarshalException(Throwable cause) 构造带指定 cause 和详细消息 (cause==null ? null :cause.toString()) 的 MarshalException(它通常包含 cause 的类和详细消息)。 |  
    |
| 方法摘要 | |
|---|---|
  Throwable |  
     getCause() 返回此 MarshalException 的 cause;如果 cause 不存在或未知,则返回 null。 |  
    
  void |  
     printStackTrace() 将此 MarshalException、它的追踪 (backtrace) 和 cause 的追踪打印到标准错误流中。 |  
    
  void |  
     printStackTrace(PrintStream s) 将此 MarshalException、它的追踪和 cause 的追踪打印到指定的打印流。 |  
    
  void |  
     printStackTrace(PrintWriter s) 将此 MarshalException、它的追踪和 cause 的追踪打印到指定的打印编写器。 |  
    
| 从类 java.lang.Throwable 继承的方法 | 
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |  
    
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |  
    
| 构造方法详细信息 | 
|---|
public MarshalException()
null 作为其详细消息的新 
    MarshalException。 
    
public MarshalException(String message)
MarshalException。 
    
message - 详细消息
     public MarshalException(String message, Throwable cause)
MarshalException。 
    注意,与 cause 相关的详细消息不是自动合并到此异常的详细消息中的。 
message - 详细消息
     cause - cause(允许为 
      null 值,指示 cause 不存在或未知。)
     public MarshalException(Throwable cause)
(cause==null ? null :cause.toString()) 的 
    MarshalException(它通常包含 
    cause 的类和详细消息)。 
    
cause - cause(允许为 
      null 值,指示 cause 不存在或未知。)
     | 方法详细信息 | 
|---|
public Throwable getCause()
MarshalException 的 cause;如果 cause 不存在或未知,则返回 
    null。(cause 是导致抛出此 
    MarshalException 的 throwable。) 
    
MarshalException 的 cause;如果 cause 不存在或未知,则返回 
      null。
     public void printStackTrace()
MarshalException、它的追踪 (backtrace) 和 cause 的追踪打印到标准错误流中。 
    
Throwable 中的 
      printStackTrace
     public void printStackTrace(PrintStream s)
MarshalException、它的追踪和 cause 的追踪打印到指定的打印流。 
    
Throwable 中的 
      printStackTrace
     s - 用于输出的 
      PrintStream
     public void printStackTrace(PrintWriter s)
MarshalException、它的追踪和 cause 的追踪打印到指定的打印编写器。 
    
Throwable 中的 
      printStackTrace
     s - 用于输出的 
      PrintWriter