public class ExternalException extends RuntimeException implements NThrowable
| Modifier | Constructor and Description |
|---|---|
|
ExternalException()
Initializes a new instance of ExternalException class.
|
protected |
ExternalException(int code,
int externalError,
String message,
String callStack,
Throwable cause)
Initializes a new instance of ExternalException class.
|
|
ExternalException(int code,
int externalError,
String message,
Throwable cause)
Initializes a new instance of ExternalException class.
|
|
ExternalException(int externalError,
String message)
Initializes a new instance of ExternalException class.
|
|
ExternalException(String message)
Initializes a new instance of ExternalException class.
|
|
ExternalException(String message,
Throwable cause)
Initializes a new instance of ExternalException class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Gets an error code of the current exception.
|
int |
getExternalError()
Retrieves the external error.
|
void |
printStackTrace(PrintStream printstream)
Prints out the stack trace into an output stream.
|
void |
printStackTrace(PrintWriter printstream)
Prints out the stack trace into an output stream.
|
String |
toString()
Retrieves a string representation of the current object.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCodepublic ExternalException()
public ExternalException(String message)
message - Error message.public ExternalException(int externalError,
String message)
externalError - message - Error message.public ExternalException(String message, Throwable cause)
message - Error message.cause - public ExternalException(int code,
int externalError,
String message,
Throwable cause)
code - Error code.externalError - message - Error message.cause - public final int getExternalError()
public String toString()
public final int getCode()
getCode in interface NThrowablepublic final void printStackTrace(PrintStream printstream)
printStackTrace in class Throwableprintstream - The output stream.public final void printStackTrace(PrintWriter printstream)
printStackTrace in class Throwableprintstream - The output stream.Copyright © 2016 Neurotechnology. All rights reserved.