NSDKError
Errors thrown by the NSDK API....
Declaration
enum NSDKErrorSummary
Errors thrown by the NSDK API.
NSDKError a subset of all the ARDK_Statuscodes returned by the C API,
containing just those that can occur in the Swift environment.
Cases
| Name | Type | Summary |
|---|---|---|
| case invalidArgument | invalidArgument | |
| case invalidOperation | invalidOperation | The requested operation cannot be performed in the current state. For example, trying to start a feature that's already running, or attempting to get data before initialization is complete. |
| case nullArgument | nullArgument | A null argument was passed where a valid value was required. This typically indicates an internal error, as the Swift wrapper should prevent null arguments from being passed to the C API. |
| case unknown | String) | Indicates an internal malfunction. In a working version of NSDK, an application should never see this result code. |
Properties
| Name | Type | Summary |
|---|---|---|
| var localizedDescription | String | Retrieve the localized description for this error. |
Operators
| Name | Type | Summary |
|---|---|---|
| static func != | Bool | Returns a Boolean value indicating whether two values are not equal. Inequality is the inverse of equality. For any values a and b, a != bimplies that a == b is false.This is the default implementation of the not-equal-to operator ( !=)for any type that conforms to Equatable.- Parameters: - lhs: A value to compare. - rhs: Another value to compare. |
| static func == | Bool | Returns a Boolean value indicating whether two values are equal. Equality is the inverse of inequality. For any values a and b,a == b implies that a != b is false.- Parameters: - lhs: A value to compare. - rhs: Another value to compare. |
This occurs when arguments are technically valid (non-null) but
contain invalid values, such as out-of-range numbers or malformed data.