Udostępnij za pośrednictwem


AnnotationFormatError Constructors

Definition

Overloads

AnnotationFormatError(Throwable)

Constructs a new AnnotationFormatError with the specified cause and a detail message of (cause == null ? null : cause.toString()) (which typically contains the class and detail message of cause).

AnnotationFormatError(String)

Constructs a new AnnotationFormatError with the specified detail message.

AnnotationFormatError(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AnnotationFormatError(String, Throwable)

Constructs a new AnnotationFormatError with the specified detail message and cause.

AnnotationFormatError(Throwable)

Constructs a new AnnotationFormatError with the specified cause and a detail message of (cause == null ? null : cause.toString()) (which typically contains the class and detail message of cause).

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public AnnotationFormatError (Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Lang.Annotation.AnnotationFormatError : Java.Lang.Throwable -> Java.Lang.Annotation.AnnotationFormatError

Parameters

cause
Throwable

the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Attributes

Remarks

Constructs a new AnnotationFormatError with the specified cause and a detail message of (cause == null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Java documentation for java.lang.annotation.AnnotationFormatError.AnnotationFormatError(java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AnnotationFormatError(String)

Constructs a new AnnotationFormatError with the specified detail message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public AnnotationFormatError (string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Lang.Annotation.AnnotationFormatError : string -> Java.Lang.Annotation.AnnotationFormatError

Parameters

message
String

the detail message.

Attributes

Remarks

Constructs a new AnnotationFormatError with the specified detail message.

Java documentation for java.lang.annotation.AnnotationFormatError.AnnotationFormatError(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AnnotationFormatError(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AnnotationFormatError (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.Annotation.AnnotationFormatError : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.Annotation.AnnotationFormatError

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AnnotationFormatError(String, Throwable)

Constructs a new AnnotationFormatError with the specified detail message and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public AnnotationFormatError (string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Lang.Annotation.AnnotationFormatError : string * Java.Lang.Throwable -> Java.Lang.Annotation.AnnotationFormatError

Parameters

message
String

the detail message

cause
Throwable

the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Attributes

Remarks

Constructs a new AnnotationFormatError with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated in this error's detail message.

Java documentation for java.lang.annotation.AnnotationFormatError.AnnotationFormatError(java.lang.String, java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to