JavaTM Platform
Standard Ed. 6

java.lang.annotation
クラス AnnotationFormatError

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Error
          上位を拡張 java.lang.annotation.AnnotationFormatError
すべての実装されたインタフェース:
Serializable

public class AnnotationFormatError
extends Error

注釈パーサーがクラスファイルから注釈の読み取りを試みて、注釈が不正であると判断した場合にスローされます。

導入されたバージョン:
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 から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

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 値が許可され、原因が存在しないか不明であることを示す)

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 も参照してください。