public final class NError extends Object
| Constructor and Description |
|---|
NError() |
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
get(HNObject hError)
Gets a specific exception.
|
static Throwable |
get(int code,
HNObject hError)
Gets a specific exception.
|
static String |
getDefaultMessage(int code)
Gets default message for the specified error.
|
static Throwable |
getLast(int code)
Gets the last exception.
|
static String |
getMessage(String message,
String paramName,
String param)
Gets an error message.
|
static int |
setLast(Throwable error)
Sets the last exception.
|
static void |
suppress(Throwable error)
Suppresses a specific error.
|
public static String getDefaultMessage(int code)
code - Error code.public static Throwable get(HNObject hError)
hError - Handle to the object that caused the error.public static Throwable get(int code, HNObject hError)
code - Error code.hError - Handle to the object that caused the error.public static Throwable getLast(int code)
code - Exception code.public static int setLast(Throwable error)
error - Last exception.public static void suppress(Throwable error)
error - The error to be suppressed.Copyright © 2016 Neurotechnology. All rights reserved.