use core::ffi::*;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
#[deprecated]
pub static DOMException: Option<&'static NSString>;
}
#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct DOMExceptionCode(pub c_uint);
impl DOMExceptionCode {
#[doc(alias = "DOM_INDEX_SIZE_ERR")]
#[deprecated]
pub const INDEX_SIZE_ERR: Self = Self(1);
#[doc(alias = "DOM_DOMSTRING_SIZE_ERR")]
#[deprecated]
pub const DOMSTRING_SIZE_ERR: Self = Self(2);
#[doc(alias = "DOM_HIERARCHY_REQUEST_ERR")]
#[deprecated]
pub const HIERARCHY_REQUEST_ERR: Self = Self(3);
#[doc(alias = "DOM_WRONG_DOCUMENT_ERR")]
#[deprecated]
pub const WRONG_DOCUMENT_ERR: Self = Self(4);
#[doc(alias = "DOM_INVALID_CHARACTER_ERR")]
#[deprecated]
pub const INVALID_CHARACTER_ERR: Self = Self(5);
#[doc(alias = "DOM_NO_DATA_ALLOWED_ERR")]
#[deprecated]
pub const NO_DATA_ALLOWED_ERR: Self = Self(6);
#[doc(alias = "DOM_NO_MODIFICATION_ALLOWED_ERR")]
#[deprecated]
pub const NO_MODIFICATION_ALLOWED_ERR: Self = Self(7);
#[doc(alias = "DOM_NOT_FOUND_ERR")]
#[deprecated]
pub const NOT_FOUND_ERR: Self = Self(8);
#[doc(alias = "DOM_NOT_SUPPORTED_ERR")]
#[deprecated]
pub const NOT_SUPPORTED_ERR: Self = Self(9);
#[doc(alias = "DOM_INUSE_ATTRIBUTE_ERR")]
#[deprecated]
pub const INUSE_ATTRIBUTE_ERR: Self = Self(10);
#[doc(alias = "DOM_INVALID_STATE_ERR")]
#[deprecated]
pub const INVALID_STATE_ERR: Self = Self(11);
#[doc(alias = "DOM_SYNTAX_ERR")]
#[deprecated]
pub const SYNTAX_ERR: Self = Self(12);
#[doc(alias = "DOM_INVALID_MODIFICATION_ERR")]
#[deprecated]
pub const INVALID_MODIFICATION_ERR: Self = Self(13);
#[doc(alias = "DOM_NAMESPACE_ERR")]
#[deprecated]
pub const NAMESPACE_ERR: Self = Self(14);
#[doc(alias = "DOM_INVALID_ACCESS_ERR")]
#[deprecated]
pub const INVALID_ACCESS_ERR: Self = Self(15);
}
unsafe impl Encode for DOMExceptionCode {
const ENCODING: Encoding = c_uint::ENCODING;
}
unsafe impl RefEncode for DOMExceptionCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}