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