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
resultTResult returned by the Source function on which the extension is used.
errorNSErrorNSError object.
Returns
- T
Result from the source function.
Type Parameters
TSource function type.
Exceptions
- NSErrorException
Throws exception received from the iOS SDK.