|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
janus.net.CommException
Eine Exception, die von janus.net.Connection-Methoden geworfen wird. Sie enthält weitergehende Informationen, wie die auslösende Exception oder einen Fehlercode.
Connection,
Serialized Form| Field Summary | |
static int |
BAD_PARAMETER
Fehlercode: Falscher Aufrufparameter |
static int |
CANNOT_DISCONNECT
Fehlercode: Kann die Verbindung nicht trennen |
static int |
CANNOT_RECEIVE
Fehlercode: Kann nicht empfangen |
static int |
CANNOT_SEND
Fehlercode: Kann nicht senden |
static int |
DISCONNECTED
Fehlercode: Verbindung unterbrochen |
int |
error_code
Fehlercode |
String |
error_text
Fehlertext (roh) |
Exception |
exception
Ursprüngliche Exception, die zu diese Exception führte. |
static int |
FATAL
Fehlercode: Fataler Fehler |
static int |
HOST_DOWN
Fehlercode: Gateway nicht verfügbar |
static int |
HOST_UNKNOWN
Fehlercode: Gateway nicht bekannt |
static String |
label
Konstanter Text als Beginn jeder Fehlermeldung. |
static int |
NO_REMOTE_CONNECTION
Fehlercode: Keine Verbindung zum Remotesystem |
static int |
NOT_IMPLEMENTED
Fehlercode: Nicht implementierte Funktion |
static int |
PROTOCOL
Fehlercode: Protokollfehler |
static int |
RECORD_TOO_BIG
Fehlercode: Datensatz zu lang |
static int |
REMOTE
Fehlercode: Fehler beim Remotesystem |
static int |
UNKNOWN
Fehlercode: Unbekannter Fehler |
| Constructor Summary | |
CommException()
Konstruktor ohne Parameter, erzeugt unbekanten Fehler. |
|
CommException(Exception e)
Konstruktor mit Exception-Parameter. |
|
CommException(Exception e,
int code)
Konstruktor mit Exception-Parameter und Fehlercode. |
|
CommException(Exception e,
int code,
String text)
Konstruktor mit allen Parametern. |
|
CommException(int code)
Konstruktor mit Fehlercode, erzeugt Standardtext. |
|
CommException(int code,
String text)
Konstruktor mit Fehlercode und Fehlertext. |
|
CommException(String text)
Konstruktor mit Fehlertext. |
|
| Method Summary | |
static String |
getCodeText(int code)
Bekannte Fehlernummern in Text umwandeln. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int BAD_PARAMETER
public static final int CANNOT_DISCONNECT
public static final int CANNOT_RECEIVE
public static final int CANNOT_SEND
public static final int DISCONNECTED
public int error_code
public String error_text
public Exception exception
public static final int FATAL
public static final int HOST_DOWN
public static final int HOST_UNKNOWN
public static String label
public static final int NO_REMOTE_CONNECTION
public static final int NOT_IMPLEMENTED
public static final int PROTOCOL
public static final int RECORD_TOO_BIG
public static final int REMOTE
public static final int UNKNOWN
| Constructor Detail |
public CommException()
public CommException(Exception e)
e - Exception
public CommException(Exception e,
int code)
e - Exceptioncode - Fehlercode
public CommException(Exception e,
int code,
String text)
e - Exception, die zum Fehler führte.code - Fehlercodetext - Fehlertext, kann null sein.public CommException(int code)
code - - Fehlercode
public CommException(int code,
String text)
code - Fehlercodetext - Fehlertextpublic CommException(String text)
text - - Fehlertext| Method Detail |
public static String getCodeText(int code)
code - Fehlernummer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||