Table of Contents

Class NSErrorExtension

Namespace
ScanbotSDK.iOS
Assembly
DocumentSDK.NET.iOS.dll
public static class NSErrorExtension
Inheritance
NSErrorExtension
Inherited Members

Methods

GetOrThrow<T>(T, NSError)

Helper function that checks if error exists in the operation. It will return the result from the invoked function if operation is fine else, Throws NSErrorException returned from the SDK.

public static T GetOrThrow<T>(this T result, NSError error)

Parameters

result T

Result returned by the Source function on which the extension is used.

error NSError

NSError object.

Returns

T

Result from the source function.

Type Parameters

T

Source function type.

Exceptions

NSErrorException

Throws exception received from the iOS SDK.