javax.mail.internet
クラス AddressException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 javax.mail.MessagingException
              上位を拡張 javax.mail.internet.ParseException
                  上位を拡張 javax.mail.internet.AddressException
すべての実装されたインタフェース:
Serializable

public final class AddressException
extends ParseException

間違った形式のアドレスが検出された時にスローされる例外です。

関連項目:
直列化された形式

フィールドの概要
protected  int pos
          エラーが発生した文字列中のインデックス、又は不明の場合は -1 になります。
protected  String ref
          構文解析される文字列です。
 
コンストラクタの概要
AddressException()
          詳細メッセージを指定しないで AddressException を構築します。
AddressException(String s)
          指定された詳細メッセージで AddressException を構築します。
AddressException(String s, String ref)
          指定された詳細メッセージと参照情報で AddressException を構築します。
AddressException(String s, String ref, int pos)
          指定された詳細メッセージと参照情報で AddressException を構築します。
 
メソッドの概要
 int getPos()
          エラーが検出された参照文字列の位置 (関連がない場合は -1) を取得します。
 String getRef()
          エラーが検出された時に構文解析されていた文字列 (関連がない場合は null) を取得します。
 String toString()
          Override toString method to provide information on nested exceptions.
 
クラス javax.mail.MessagingException から継承されたメソッド
getCause, getNextException, setNextException
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

ref

protected String ref
構文解析される文字列です。


pos

protected int pos
エラーが発生した文字列中のインデックス、又は不明の場合は -1 になります。

コンストラクタの詳細

AddressException

public AddressException()
詳細メッセージを指定しないで AddressException を構築します。


AddressException

public AddressException(String s)
指定された詳細メッセージで AddressException を構築します。

パラメータ:
s - 詳細メッセージ

AddressException

public AddressException(String s,
                        String ref)
指定された詳細メッセージと参照情報で AddressException を構築します。

パラメータ:
s - 詳細メッセージ

AddressException

public AddressException(String s,
                        String ref,
                        int pos)
指定された詳細メッセージと参照情報で AddressException を構築します。

パラメータ:
s - 詳細メッセージ
メソッドの詳細

getRef

public String getRef()
エラーが検出された時に構文解析されていた文字列 (関連がない場合は null) を取得します。


getPos

public int getPos()
エラーが検出された参照文字列の位置 (関連がない場合は -1) を取得します。


toString

public String toString()
クラス MessagingException の記述:
Override toString method to provide information on nested exceptions.

オーバーライド:
クラス MessagingException 内の toString