docs

bare::ffi::objc::error

本页内容

API 参考只有英文版,由标准库源代码中的英文文档注释生成。

NSError, what a method that reports through a last NSError ** parameter throws.

Structs

NSErrorSource

pub struct NSError

NSError, Foundation's error class.

Trait implementations 1

ErrorSource

pub struct Error

An NSError a method reported, thrown by throws (objc::Error).

  • pub fn ns_error(self) -> Id<NSError> | none§

    Source

    The NSError; none when the method failed without one.

  • pub fn domain(self) -> str§

    Source

    -[NSError domain] ("NSCocoaErrorDomain", ..).

  • pub fn code(self) -> isize§

    Source

    -[NSError code], within the domain.

  • pub fn localizedDescription(self) -> str§

    Source

    -[NSError localizedDescription].

Trait implementations 3