| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.net.URISyntaxException
public class URISyntaxException
文字列を URI 参照として解析できなかったことを示すためにスローされた確認済みの例外です。
URI, 
直列化された形式| コンストラクタの概要 | |
|---|---|
| URISyntaxException(String input,
                   String reason)指定された入力文字列と理由からインスタンスを構築します。 | |
| URISyntaxException(String input,
                   String reason,
                   int index)指定された入力文字列、理由、およびエラーインデックスからインスタンスを構築します。 | |
| メソッドの概要 | |
|---|---|
|  int | getIndex()解析エラーが発生した入力文字列内の位置を示すインデックスを返します。 | 
|  String | getInput()入力文字列を返します。 | 
|  String | getMessage()解析エラーを記述する文字列を返します。 | 
|  String | getReason()入力文字列を解析できなかった理由を説明する文字列を返します。 | 
| クラス java.lang.Throwable から継承されたメソッド | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| コンストラクタの詳細 | 
|---|
public URISyntaxException(String input,
                          String reason,
                          int index)
input - 入力文字列reason - 入力を解析できなかった理由を説明する文字列index - 解析エラーが発生したインデックス。インデックスが不明の場合は -1
NullPointerException - 入力または理由文字列が null の場合
IllegalArgumentException - エラーインデックスが -1 より小さい場合
public URISyntaxException(String input,
                          String reason)
input - 入力文字列reason - 入力を解析できなかった理由を説明する文字列
NullPointerException - 入力または理由文字列が null の場合| メソッドの詳細 | 
|---|
public String getInput()
public String getReason()
public int getIndex()
public String getMessage()
Throwable 内の getMessage| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。