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