com.actronika.skineticsdk.SkineticSDK.ERROR
Error codes returned by the functions of the library.
Enum Constants
Enum constants | Description |
---|---|
E_NO_ERROR | No error. |
E_OTHER | Other. |
E_INVALID_PARAM | Invalid parameter. |
E_NOT_CONNECTED | No device connected. |
E_OUTPUT_NOT_SUPPORTED | Output is not supported on this platform. |
E_INVALID_JSON | Invalid Json. |
E_DEVICE_NOT_REACHABLE | Device not reachable. |
E_PENDING_COMMAND | A priority command is waiting to be processed. |
E_NO_MORE_SLOT | No available slot on the board. |
E_NO_INSTANCE | No Skinetic instance created. |
E_INVALID_MESSAGE | Received an invalid message. |
E_ALREADY_RUNNING | Process is already running. |
E_DEVICE_ALREADY_CONNECTED | A device is already connected. |
E_INITIALIZATION_INTERRUPTED | The initialization of the device has been interrupted. |
E_PLAY_IGNORED | Play was ignored due to overall trigger strategy. |
E_JNI_ERROR | Error in JNI layer. |
E_USB_PERMISSION_DENIED | Permission to use USB denied. |
Public Functions
Name | |
---|---|
int | getValue() Get corresponding int of an ERROR enum value. |
String | getMessage() Get ERROR string. |
ERROR | get(int value) Find an ERROR enum by value, or throw an exception if it's unknown. |
Enum Constants Documentation
enum constant E_NO_ERROR
E_NO_ERROR;
No error.
enum constant E_OTHER
E_OTHER;
Other.
enum constant E_INVALID_PARAM
E_INVALID_PARAM;
Invalid parameter.
enum constant E_NOT_CONNECTED
E_NOT_CONNECTED;
No device connected.
enum constant E_OUTPUT_NOT_SUPPORTED
E_OUTPUT_NOT_SUPPORTED;
Output is not supported on this platform.
enum constant E_INVALID_JSON
E_INVALID_JSON;
Invalid Json.
enum constant E_DEVICE_NOT_REACHABLE
E_DEVICE_NOT_REACHABLE;
Device not reachable.
enum constant E_PENDING_COMMAND
E_PENDING_COMMAND;
A priority command is waiting to be processed.
enum constant E_NO_MORE_SLOT
E_NO_MORE_SLOT;
No available slot on the board.
enum constant E_NO_INSTANCE
E_NO_INSTANCE;
No Skinetic instance created.
enum constant E_INVALID_MESSAGE
E_INVALID_MESSAGE;
Received an invalid message.
enum constant E_ALREADY_RUNNING
E_ALREADY_RUNNING;
Process is already running.
enum constant E_DEVICE_ALREADY_CONNECTED
E_DEVICE_ALREADY_CONNECTED;
A device is already connected.
enum constant E_INITIALIZATION_INTERRUPTED
E_INITIALIZATION_INTERRUPTED;
The initialization of the device has been interrupted.
enum constant E_PLAY_IGNORED
E_PLAY_IGNORED;
Play was ignored due to overall trigger strategy.
enum constant E_JNI_ERROR
E_JNI_ERROR;
Error in JNI layer.
enum constant E_USB_PERMISSION_DENIED
E_USB_PERMISSION_DENIED;
Permission to use USB denied.
Public Functions Documentation
function getValue
public int getValue()
Get corresponding int of an ERROR enum value.
function getMessage
public String getMessage()
Get ERROR string.
Get description of the error cause.
function get
public static ERROR get(
int value
)
Find an ERROR enum by value, or throw an exception if it's unknown.
Parameters:
- value The code value to get an ERROR for.
Return: The ERROR enum associated with value.
Updated on 2024-07-11 at 09:47:11 +0000