public final class NResult extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
E_ABANDONED_MUTEX
The wait completed due to an abandoned mutex.
|
static int |
E_AGGREGATE
One or more errors occurred.
|
static int |
E_ARGUMENT
Invalid argument.
|
static int |
E_ARGUMENT_NULL
Argument is NULL.
|
static int |
E_ARGUMENT_OUT_OF_RANGE
Argument is out of range.
|
static int |
E_ARITHMETIC
Arithmetic error occurred.
|
static int |
E_BAD_IMAGE_FORMAT
Module has invalid format.
|
static int |
E_CLR
CLR error occurred.
|
static int |
E_COM
COM error occurred.
|
static int |
E_CORE
Core error occurred.
|
static int |
E_CPP
C++ error occurred.
|
static int |
E_DIRECTORY_NOT_FOUND
Directory not found.
|
static int |
E_DLL_NOT_FOUND
Module not found.
|
static int |
E_DRIVE_NOT_FOUND
Drive not found.
|
static int |
E_END_OF_STREAM
Unexpected end of stream.
|
static int |
E_ENTRY_POINT_NOT_FOUND
Entry point not found in a module.
|
static int |
E_EXTERNAL
External error occurred.
|
static int |
E_FAILED
Operation failed.
|
static int |
E_FILE_FORMAT
File or stream format is invalid.
|
static int |
E_FILE_LOAD
Error loading module from file.
|
static int |
E_FILE_NOT_FOUND
File not found.
|
static int |
E_FORMAT
Argument format is invalid.
|
static int |
E_INDEX_OUT_OF_RANGE
Access with index was out of range.
|
static int |
E_INVALID_CAST
The cast is invalid.
|
static int |
E_INVALID_ENUM_ARGUMENT
Argument is an invalid enum value.
|
static int |
E_INVALID_OPERATION
Attempted to execute operation that is not valid for the object.
|
static int |
E_IO
IO error occurred.
|
static int |
E_JVM
JVM error occurred.
|
static int |
E_KEY_NOT_FOUND
Key not found.
|
static int |
E_MAC
MacOS error occurred.
|
static int |
E_NOT_ACTIVATED
Operation is not activated.
|
static int |
E_NOT_IMPLEMENTED
Operation is not implemented.
|
static int |
E_NOT_SUPPORTED
Operation is not supported.
|
static int |
E_NULL_REFERENCE
Attempted to reference a NULL object.
|
static int |
E_OPERATION_CANCELED
Operation canceled.
|
static int |
E_OUT_OF_MEMORY
Out of memory.
|
static int |
E_OVERFLOW
Overflow occurred.
|
static int |
E_PATH_TOO_LONG
Path is too long.
|
static int |
E_SECURITY
Security error occurred.
|
static int |
E_SOCKET
Socket error occurred.
|
static int |
E_SYS
Sys error occurred.
|
static int |
E_TARGET_INVOCATION
Error during target invocation.
|
static int |
E_TIMEOUT
Operation timed out.
|
static int |
E_WIN32
Win32 error occurred.
|
static int |
OK
No error.
|
| Constructor and Description |
|---|
NResult() |
| Modifier and Type | Method and Description |
|---|---|
static int |
check(int result)
Checks if the result of a function indicates that an error has occurred and if so throws an exception.
|
static void |
checkAll(Throwable th)
Checks whether the specified throwable throws all runtime exceptions.
|
static Throwable |
checkExecution(Throwable th) |
static Throwable |
checkIO(Throwable th)
Checks whether the specified throwable throws an Input/Output exception
|
static Throwable |
checkNet(Throwable th)
Checks whether the specified throwable throws a socket exception.
|
static Throwable |
checkTimeout(Throwable th)
Checks whether the specified throwable throws a timeout exception.
|
static Throwable |
checkUnchecked(int result)
Checks what throwable produces the specified result.
|
static Throwable |
getError(int error,
HNObject hError)
For internal use only.
|
static boolean |
isFailed(int result)
Checks if the result of a function indicates that an error has occurred.
|
static boolean |
isSucceeded(int result)
Checks if the result of a function indicates that no error has occurred.
|
static int |
setLastError(Throwable error)
For internal use only.
|
static void |
suppressError(Throwable error)
For internal use only.
|
public static final int OK
public static final int E_FAILED
public static final int E_CORE
public static final int E_ABANDONED_MUTEX
public static final int E_AGGREGATE
public static final int E_ARGUMENT
public static final int E_ARGUMENT_NULL
public static final int E_ARGUMENT_OUT_OF_RANGE
public static final int E_INVALID_ENUM_ARGUMENT
public static final int E_ARITHMETIC
public static final int E_OVERFLOW
public static final int E_BAD_IMAGE_FORMAT
public static final int E_DLL_NOT_FOUND
public static final int E_ENTRY_POINT_NOT_FOUND
public static final int E_TIMEOUT
public static final int E_FORMAT
public static final int E_FILE_FORMAT
public static final int E_INDEX_OUT_OF_RANGE
public static final int E_INVALID_CAST
public static final int E_INVALID_OPERATION
public static final int E_IO
public static final int E_DIRECTORY_NOT_FOUND
public static final int E_DRIVE_NOT_FOUND
public static final int E_END_OF_STREAM
public static final int E_FILE_NOT_FOUND
public static final int E_FILE_LOAD
public static final int E_PATH_TOO_LONG
public static final int E_SOCKET
public static final int E_KEY_NOT_FOUND
public static final int E_NOT_IMPLEMENTED
public static final int E_NOT_SUPPORTED
public static final int E_NULL_REFERENCE
public static final int E_OPERATION_CANCELED
public static final int E_OUT_OF_MEMORY
public static final int E_SECURITY
public static final int E_TARGET_INVOCATION
public static final int E_EXTERNAL
public static final int E_CLR
public static final int E_COM
public static final int E_CPP
public static final int E_JVM
public static final int E_MAC
public static final int E_SYS
public static final int E_WIN32
public static final int E_NOT_ACTIVATED
public static boolean isFailed(int result)
result - int representing function's resultpublic static boolean isSucceeded(int result)
result - int representing function's resultpublic static int check(int result)
result - int representing function's resultpublic static Throwable checkUnchecked(int result)
result - public static Throwable checkIO(Throwable th) throws IOException
th - The throwable specified.IOExceptionpublic static Throwable checkNet(Throwable th) throws SocketException
th - The throwable specified.SocketExceptionpublic static Throwable checkTimeout(Throwable th) throws TimeoutException
th - The throwable specified.TimeoutExceptionpublic static Throwable checkExecution(Throwable th) throws ExecutionException
ExecutionExceptionpublic static void checkAll(Throwable th)
th - The throwable specified.public static void suppressError(Throwable error)
error - Error to suppress.public static int setLastError(Throwable error)
Copyright © 2016 Neurotechnology. All rights reserved.