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