1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! #[cfg(any(feature = "all", feature = "org-w3c-dom-DOMException"))] __jni_bindgen! { /// public class [DOMException](https://developer.android.com/reference/org/w3c/dom/DOMException.html) /// /// Required feature: "org-w3c-dom-DOMException" public class DOMException ("org/w3c/dom/DOMException") extends crate::java::lang::RuntimeException { /// [DOMException](https://developer.android.com/reference/org/w3c/dom/DOMException.html#DOMException(short,%20java.lang.String)) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i16, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::w3c::dom::DOMException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "org/w3c/dom/DOMException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(SLjava/lang/String;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_method("org/w3c/dom/DOMException\0", "<init>\0", "(SLjava/lang/String;)V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// public static final [DOMSTRING_SIZE_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#DOMSTRING_SIZE_ERR) pub const DOMSTRING_SIZE_ERR : i16 = 2; /// public static final [HIERARCHY_REQUEST_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#HIERARCHY_REQUEST_ERR) pub const HIERARCHY_REQUEST_ERR : i16 = 3; /// public static final [INDEX_SIZE_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#INDEX_SIZE_ERR) pub const INDEX_SIZE_ERR : i16 = 1; /// public static final [INUSE_ATTRIBUTE_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#INUSE_ATTRIBUTE_ERR) pub const INUSE_ATTRIBUTE_ERR : i16 = 10; /// public static final [INVALID_ACCESS_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#INVALID_ACCESS_ERR) pub const INVALID_ACCESS_ERR : i16 = 15; /// public static final [INVALID_CHARACTER_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#INVALID_CHARACTER_ERR) pub const INVALID_CHARACTER_ERR : i16 = 5; /// public static final [INVALID_MODIFICATION_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#INVALID_MODIFICATION_ERR) pub const INVALID_MODIFICATION_ERR : i16 = 13; /// public static final [INVALID_STATE_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#INVALID_STATE_ERR) pub const INVALID_STATE_ERR : i16 = 11; /// public static final [NAMESPACE_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#NAMESPACE_ERR) pub const NAMESPACE_ERR : i16 = 14; /// public static final [NOT_FOUND_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#NOT_FOUND_ERR) pub const NOT_FOUND_ERR : i16 = 8; /// public static final [NOT_SUPPORTED_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#NOT_SUPPORTED_ERR) pub const NOT_SUPPORTED_ERR : i16 = 9; /// public static final [NO_DATA_ALLOWED_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#NO_DATA_ALLOWED_ERR) pub const NO_DATA_ALLOWED_ERR : i16 = 6; /// public static final [NO_MODIFICATION_ALLOWED_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#NO_MODIFICATION_ALLOWED_ERR) pub const NO_MODIFICATION_ALLOWED_ERR : i16 = 7; /// public static final [SYNTAX_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#SYNTAX_ERR) pub const SYNTAX_ERR : i16 = 12; /// public static final [TYPE_MISMATCH_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#TYPE_MISMATCH_ERR) pub const TYPE_MISMATCH_ERR : i16 = 17; /// public static final [VALIDATION_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#VALIDATION_ERR) pub const VALIDATION_ERR : i16 = 16; /// public static final [WRONG_DOCUMENT_ERR](https://developer.android.com/reference/org/w3c/dom/DOMException.html#WRONG_DOCUMENT_ERR) pub const WRONG_DOCUMENT_ERR : i16 = 4; /// **get** public [code](https://developer.android.com/reference/org/w3c/dom/DOMException.html#code) pub fn code<'env>(&'env self) -> i16 { unsafe { let env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_field) = env.require_class_field("org/w3c/dom/DOMException\0", "code\0", "S\0"); env.get_short_field(self.0.object, __jni_field) } } /// **set** public [code](https://developer.android.com/reference/org/w3c/dom/DOMException.html#code) pub fn set_code<'env>(&'env self, value: i16) { unsafe { let env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_field) = env.require_class_field("org/w3c/dom/DOMException\0", "code\0", "S\0"); env.set_short_field(self.0.object, __jni_field, value) } } } }