VGError

Objective-C

@interface VGError : NSError

@property (readonly) VGErrorType type;
@property (readonly, nullable) NSString* errorCode;
@property (readonly, nullable) NSString* message;
// Diagnostics surfaced from the core VonageError so iOS customers can read them. `source` is the
// versioned breadcrumb pinning the failing code path; `retryAfter` is best-effort seconds to wait
// before retrying.
@property (readonly, nullable) NSString* source;
@property (readonly) BOOL isRetriable;
@property (readonly, nullable) NSNumber* retryAfter;

- (instancetype)init __attribute__((unavailable));

@end

Swift

class VGError : NSError

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (readonly) VGErrorType type

    Swift

    var type: VGErrorType { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, nullable) NSString* errorCode

    Swift

    var errorCode: String? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, nullable) NSString* message

    Swift

    var message: String? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, nullable) NSString* source

    Swift

    var source: String? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) BOOL isRetriable

    Swift

    var isRetriable: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, nullable) NSNumber* retryAfter

    Swift

    var retryAfter: NSNumber? { get }
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init __attribute__((unavailable));