JavaTM Platform
Standard Ed. 6

javax.xml.stream
クラス XMLStreamException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 javax.xml.stream.XMLStreamException
すべての実装されたインタフェース:
Serializable

public class XMLStreamException
extends Exception

予期しない処理エラーのための基本の例外です。この例外クラスは、予期しない処理条件と整形式エラーを報告するために使用されます。

導入されたバージョン:
1.6
関連項目:
直列化された形式

フィールドの概要
protected  Location location
           
protected  Throwable nested
           
 
コンストラクタの概要
XMLStreamException()
          デフォルトのコンストラクタです。
XMLStreamException(String msg)
          メッセージが関連付けられた例外を構築します。
XMLStreamException(String msg, Location location)
          メッセージ、例外、および場所が関連付けられた例外を構築します。
XMLStreamException(String msg, Location location, Throwable th)
          メッセージ、例外、および場所が関連付けられた例外を構築します。
XMLStreamException(String msg, Throwable th)
          メッセージと例外が関連付けられた例外を構築します。
XMLStreamException(Throwable th)
          例外が関連付けられた例外を構築します。
 
メソッドの概要
 Location getLocation()
          例外の場所を取得します。
 Throwable getNestedException()
          入れ子の例外を取得します。
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

nested

protected Throwable nested

location

protected Location location
コンストラクタの詳細

XMLStreamException

public XMLStreamException()
デフォルトのコンストラクタです。


XMLStreamException

public XMLStreamException(String msg)
メッセージが関連付けられた例外を構築します。

パラメータ:
msg - 報告するメッセージ

XMLStreamException

public XMLStreamException(Throwable th)
例外が関連付けられた例外を構築します。

パラメータ:
th - 入れ子の例外

XMLStreamException

public XMLStreamException(String msg,
                          Throwable th)
メッセージと例外が関連付けられた例外を構築します。

パラメータ:
th - 入れ子の例外
msg - 報告するメッセージ

XMLStreamException

public XMLStreamException(String msg,
                          Location location,
                          Throwable th)
メッセージ、例外、および場所が関連付けられた例外を構築します。

パラメータ:
th - 入れ子の例外
msg - 報告するメッセージ
location - エラーの場所

XMLStreamException

public XMLStreamException(String msg,
                          Location location)
メッセージ、例外、および場所が関連付けられた例外を構築します。

パラメータ:
msg - 報告するメッセージ
location - エラーの場所
メソッドの詳細

getNestedException

public Throwable getNestedException()
入れ子の例外を取得します。

戻り値:
入れ子の例外

getLocation

public Location getLocation()
例外の場所を取得します。

戻り値:
例外の場所、有効なものがない場合 null

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。