iOS Verizon Ads SDK Standard Edition Documentation  1.14
Class Methods | Properties | List of all members
VASErrorInfo Class Reference

VASErrorInfo contains info about errors. More...

#import <VASErrorInfo.h>

Inherits NSError.

Class Methods

(instancetype) + errorWithDomain:code:who:description:underlying:
 Get an error instance using the most commonly used fields. More...
 

Properties

NSStringwho
 Indicates the source of the error.
 

Detailed Description

VASErrorInfo contains info about errors.

Method Documentation

◆ errorWithDomain:code:who:description:underlying:

+ (instancetype) errorWithDomain: (NSErrorDomain domain
code: (NSInteger code
who: (NSString *)  who
description: (NSString *)  description
underlying: (NSError *)  underlying 

Get an error instance using the most commonly used fields.

Note that you can also use the underlying errorWithDomain implemented by NSError but you must create the userInfo and add the key/value pairs for these common fields.

Parameters
domainThe error domain. This can be one of the predefined NSError domains, or an arbitrary string describing a custom domain. This parameter must not be nil.
codeThe error code for the error.
whoWho caused or generated the error. This parameter may be nil.
descriptionA brief description of the error. This parameter may be nil.
underlyingAn underlying error that is the cause of the error. This parameter may be nil.
Returns
An initialized instance of this class.