AnnotationFormatError

當注釋分析器試圖從類檔案讀取注釋並確定注釋出現異常時,拋出該錯誤。

基本介紹

  • 中文名:AnnotationFormatError
  • 拋出該錯誤: AnnotationFormatError
  • 方法摘要:String message
  • 參數::message - 詳細訊息
簡介,構造方法摘要,方法摘要,

簡介

java.lang.annotation
類 AnnotationFormatError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.annotation.AnnotationFormatError
所有已實現的接口:
java . io . Serializable
public class AnnotationFormatErrorextends Error當注釋分析器試圖從類檔案讀取注釋並確定注釋出現異常時,拋出該錯誤。
從以下版本開始:
1.5
另請參見:
序列化表格

構造方法摘要

AnnotationFormatError(String message)
構造具有指定詳細訊息的新 AnnotationFormatError。
AnnotationFormatError(String message, Throwable cause)
構造帶指定詳細訊息和原因的新 AnnotationFormatError。
AnnotationFormatError(Throwable cause)
構造帶指定原因和詳細訊息的新 AnnotationFormatError,該訊息為 (cause == null ? null :cause.toString())(它通常包含 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 值,它表示原因是不存在的或是未知的。)

相關詞條

熱門詞條

聯絡我們