objc2_web_kit/generated/
DOMException.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 pub static DOMException: Option<&'static NSString>;
12}
13
14#[deprecated]
16#[repr(transparent)]
17#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
18pub struct DOMExceptionCode(pub c_uint);
19impl DOMExceptionCode {
20 #[deprecated]
21 #[doc(alias = "DOM_INDEX_SIZE_ERR")]
22 pub const INDEX_SIZE_ERR: Self = Self(1);
23 #[deprecated]
24 #[doc(alias = "DOM_DOMSTRING_SIZE_ERR")]
25 pub const DOMSTRING_SIZE_ERR: Self = Self(2);
26 #[deprecated]
27 #[doc(alias = "DOM_HIERARCHY_REQUEST_ERR")]
28 pub const HIERARCHY_REQUEST_ERR: Self = Self(3);
29 #[deprecated]
30 #[doc(alias = "DOM_WRONG_DOCUMENT_ERR")]
31 pub const WRONG_DOCUMENT_ERR: Self = Self(4);
32 #[deprecated]
33 #[doc(alias = "DOM_INVALID_CHARACTER_ERR")]
34 pub const INVALID_CHARACTER_ERR: Self = Self(5);
35 #[deprecated]
36 #[doc(alias = "DOM_NO_DATA_ALLOWED_ERR")]
37 pub const NO_DATA_ALLOWED_ERR: Self = Self(6);
38 #[deprecated]
39 #[doc(alias = "DOM_NO_MODIFICATION_ALLOWED_ERR")]
40 pub const NO_MODIFICATION_ALLOWED_ERR: Self = Self(7);
41 #[deprecated]
42 #[doc(alias = "DOM_NOT_FOUND_ERR")]
43 pub const NOT_FOUND_ERR: Self = Self(8);
44 #[deprecated]
45 #[doc(alias = "DOM_NOT_SUPPORTED_ERR")]
46 pub const NOT_SUPPORTED_ERR: Self = Self(9);
47 #[deprecated]
48 #[doc(alias = "DOM_INUSE_ATTRIBUTE_ERR")]
49 pub const INUSE_ATTRIBUTE_ERR: Self = Self(10);
50 #[deprecated]
51 #[doc(alias = "DOM_INVALID_STATE_ERR")]
52 pub const INVALID_STATE_ERR: Self = Self(11);
53 #[deprecated]
54 #[doc(alias = "DOM_SYNTAX_ERR")]
55 pub const SYNTAX_ERR: Self = Self(12);
56 #[deprecated]
57 #[doc(alias = "DOM_INVALID_MODIFICATION_ERR")]
58 pub const INVALID_MODIFICATION_ERR: Self = Self(13);
59 #[deprecated]
60 #[doc(alias = "DOM_NAMESPACE_ERR")]
61 pub const NAMESPACE_ERR: Self = Self(14);
62 #[deprecated]
63 #[doc(alias = "DOM_INVALID_ACCESS_ERR")]
64 pub const INVALID_ACCESS_ERR: Self = Self(15);
65}
66
67unsafe impl Encode for DOMExceptionCode {
68 const ENCODING: Encoding = c_uint::ENCODING;
69}
70
71unsafe impl RefEncode for DOMExceptionCode {
72 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
73}