Inherits from NSError
Declared in SCError.h

Overview

Any SitecoreMobileSDK error has a type inherited from SCApiError class, see SCApiError inheritors for details.
If Sitecore Mobile SDK error type is SCApiError ( [ error isMemberOfClass: [ SCApiError class ] ] == YES ), this is invalid behaviour, please contact Sitecore support team in such case to fix problem.

Tasks

Properties

underlyingError

A lower level error for more precise diagnostics

@property (nonatomic) NSError *underlyingError

Discussion

A lower level error for more precise diagnostics

Declared In

SCError.h

Instance Methods

initWithDescription:

Constructs an error object with the sitecore SDK domain and default code.

- (instancetype)initWithDescription:(NSString *)description

Parameters

description

A string to be stored in NSLocalizedDescriptionKey of [NSError userInfo]

Discussion

Constructs an error object with the sitecore SDK domain and default code.

Declared In

SCError.h

initWithDescription:code:

Constructs an error object with the sitecore SDK domain.

- (instancetype)initWithDescription:(NSString *)description code:(NSInteger)code

Parameters

description

A string to be stored in NSLocalizedDescriptionKey of [NSError userInfo]

code

The error code for the error.

Discussion

Constructs an error object with the sitecore SDK domain.

Declared In

SCError.h