VSSError Class Reference

Inherits from VSSModel : NSObject
Declared in VSSError.h

Overview

Wrapper object for managing errors returned by the Virgil Services.

Other Methods

  code

Error code returned by the Virgil Service.

@property (nonatomic, assign, readonly) NSInteger code

Declared In

VSSError.h

Lifecycle

– initWithCode:

Designated constructor.

- (instancetype __nonnull)initWithCode:(NSInteger)code

Parameters

code

Error code.

Return Value

Instance of the Virgil Error wrapper.

Declared In

VSSError.h

Utility

– message

Convenient method for getting the actual error message based on the current error code.

- (NSString *__nullable)message

Return Value

String meaning of the error code.

Declared In

VSSError.h

– nsError

Convenient method for getting the NSError object from the VSSError.

- (NSError *__nullable)nsError

Return Value

NSError representation of the current error.

Declared In

VSSError.h