다음을 통해 공유


Handler.ReportError(String, Exception, Int32) Method

Definition

Protected convenience method to report an error to this Handler's ErrorManager.

[Android.Runtime.Register("reportError", "(Ljava/lang/String;Ljava/lang/Exception;I)V", "GetReportError_Ljava_lang_String_Ljava_lang_Exception_IHandler")]
protected virtual void ReportError (string? msg, Java.Lang.Exception? ex, int code);
[<Android.Runtime.Register("reportError", "(Ljava/lang/String;Ljava/lang/Exception;I)V", "GetReportError_Ljava_lang_String_Ljava_lang_Exception_IHandler")>]
abstract member ReportError : string * Java.Lang.Exception * int -> unit
override this.ReportError : 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

Protected convenience method to report an error to this Handler's ErrorManager. Note that this method retrieves and uses the ErrorManager without doing a security check. It can therefore be used in environments where the caller may be non-privileged.

Java documentation for java.util.logging.Handler.reportError(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