Skip to content

Error Handling

When the server reports the error, it is delivered to the application as Fault object:

@interface Fault : NSObject 

@property (strong, nonatomic) NSString *message;
@property NSInteger faultCode;

// init methods
...

@end
@objcMembers open class Fault: NSError {            
    open var message: String?
    open var faultCode: Int = 0

    // init methods
    ...    
}

Error handling for errors returned from the server must be implemented in a block-based (closure-based) callback.


Error Codes

Click here for the complete list of Backendless Error Codes