Skip to main content
API Reference NSDK

NSDKError

Errors thrown by the NSDK API....

Declaration

enum NSDKError

Summary

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

NameTypeSummary
case invalidArgumentinvalidArgument
An invalid argument was provided to the operation.
This occurs when arguments are technically valid (non-null) but
contain invalid values, such as out-of-range numbers or malformed data.
case invalidOperationinvalidOperation
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 nullArgumentnullArgument
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 unknownString)
Indicates an internal malfunction. In a working version of NSDK,
an application should never see this result code.

Properties

NameTypeSummary
var localizedDescriptionString
Retrieve the localized description for this error.

Operators

NameTypeSummary
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 != b
implies 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.

Relationships

conforms to: Swift.Equatable
conforms to: Swift.Error
conforms to: Swift.Sendable