metal4/codes

Search:
Group by:
Source   Edit  

Types

Metal4Error = object of CatchableError
Source   Edit  

Procs

proc checkNil[T](value: T; msg: string)
Raises Metal4Error when an Objective-C handle is nil. Source   Edit  
proc checkNSError(error: NSError; msg: string) {....raises: [Metal4Error],
    tags: [RootEffect], forbids: [].}
Raises Metal4Error when NSError is present. Source   Edit  
proc isNil[T](value: T): bool
Returns true when an Objective-C handle is nil. Source   Edit  
proc messageNSError(error: NSError; msg: string): string {....raises: [],
    tags: [RootEffect], forbids: [].}
Returns a readable error message for an NSError value. Source   Edit