code property

int code

The numeric code for the error e.g. -1003 (kCFURLErrorCannotFindHost).

The interpretation of this code will depend on the domain of the error which, for URL loading, will usually be kCFErrorDomainCFNetwork.

See NSError.code

Implementation

int get code => _nsObject.code;