次の方法で共有


ErrorManager.Error(String, Exception, Int32) Method

Definition

The error method is called when a Handler failure occurs.

[Android.Runtime.Register("error", "(Ljava/lang/String;Ljava/lang/Exception;I)V", "GetError_Ljava_lang_String_Ljava_lang_Exception_IHandler")]
public virtual void Error (string? msg, Java.Lang.Exception? ex, int code);
[<Android.Runtime.Register("error", "(Ljava/lang/String;Ljava/lang/Exception;I)V", "GetError_Ljava_lang_String_Ljava_lang_Exception_IHandler")>]
abstract member Error : string * Java.Lang.Exception * int -> unit
override this.Error : string * Java.Lang.Exception * int -> unit

Parameters

msg
String

a descriptive string (may be null)

ex
Exception

an exception (may be null)

code
Int32

an error code defined in ErrorManager

Attributes

Remarks

The error method is called when a Handler failure occurs.

This method may be overridden in subclasses. The default behavior in this base class is that the first call is reported to System.err, and subsequent calls are ignored.

Java documentation for java.util.logging.ErrorManager.error(java.lang.String, java.lang.Exception, int).

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