java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.annotation.AnnotationFormatError
- すべての実装されたインタフェース:
Serializable
public class AnnotationFormatError extends Error
注釈パーサーがクラス・ファイルから注釈の読取りを試みて、注釈が不正であると判断した場合にスローされます。 このエラーは、リフレクション経由での注釈の読取りに使用したAPIからスローされる可能性があります。
- 導入されたバージョン:
- 1.5
- 関連項目:
-
コンストラクタのサマリー
コンストラクタ説明AnnotationFormatError
(String message) 指定された詳細メッセージを使用してAnnotationFormatError
を新しく構築します。AnnotationFormatError
(String message, Throwable cause) 指定された詳細メッセージおよび原因を使用してAnnotationFormatError
を新しく構築します。AnnotationFormatError
(Throwable cause) 指定された原因と詳細メッセージ(cause == null ? null : cause.toString())
を持つ新しいAnnotationFormatError
を構築します(通常、cause
のクラスと詳細メッセージを含みます)。 -
メソッドのサマリー
クラス java.lang.Throwableで宣言されたメソッド
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
コンストラクタの詳細
-
AnnotationFormatError
public AnnotationFormatError(String message) 指定された詳細メッセージを使用してAnnotationFormatError
を新しく構築します。- パラメータ:
message
- 詳細メッセージ。
-
AnnotationFormatError
指定された詳細メッセージおよび原因を使用してAnnotationFormatError
を新しく構築します。cause
と関連付けられた詳細メッセージが、このエラーの詳細メッセージに自動的に統合されることはありません。- パラメータ:
message
- 詳細メッセージcause
- 原因(null
値が許可され、原因が存在しないか不明であることを示す)
-
AnnotationFormatError
public AnnotationFormatError(Throwable cause) 指定された原因と詳細メッセージ(cause == null ? null : cause.toString())
を持つ新しいAnnotationFormatError
を構築します(通常、cause
のクラスと詳細メッセージを含みます)。- パラメータ:
cause
- 原因(null
値が許可され、原因が存在しないか不明であることを示す)
-