janus.net
Class CommException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by janus.net.CommException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TandemException

public class CommException
extends IOException

Eine Exception, die von janus.net.Connection-Methoden geworfen wird. Sie enthält weitergehende Informationen, wie die auslösende Exception oder einen Fehlercode.

See Also:
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

BAD_PARAMETER

public static final int BAD_PARAMETER
Fehlercode: Falscher Aufrufparameter

See Also:
Constant Field Values

CANNOT_DISCONNECT

public static final int CANNOT_DISCONNECT
Fehlercode: Kann die Verbindung nicht trennen

See Also:
Constant Field Values

CANNOT_RECEIVE

public static final int CANNOT_RECEIVE
Fehlercode: Kann nicht empfangen

See Also:
Constant Field Values

CANNOT_SEND

public static final int CANNOT_SEND
Fehlercode: Kann nicht senden

See Also:
Constant Field Values

DISCONNECTED

public static final int DISCONNECTED
Fehlercode: Verbindung unterbrochen

See Also:
Constant Field Values

error_code

public int error_code
Fehlercode


error_text

public String error_text
Fehlertext (roh)


exception

public Exception exception
Ursprüngliche Exception, die zu diese Exception führte. Kann null sein!


FATAL

public static final int FATAL
Fehlercode: Fataler Fehler

See Also:
Constant Field Values

HOST_DOWN

public static final int HOST_DOWN
Fehlercode: Gateway nicht verfügbar

See Also:
Constant Field Values

HOST_UNKNOWN

public static final int HOST_UNKNOWN
Fehlercode: Gateway nicht bekannt

See Also:
Constant Field Values

label

public static String label
Konstanter Text als Beginn jeder Fehlermeldung. Wert: "Kommunikationsfehler ". Der Text kann überschrieben werden.


NO_REMOTE_CONNECTION

public static final int NO_REMOTE_CONNECTION
Fehlercode: Keine Verbindung zum Remotesystem

See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final int NOT_IMPLEMENTED
Fehlercode: Nicht implementierte Funktion

See Also:
Constant Field Values

PROTOCOL

public static final int PROTOCOL
Fehlercode: Protokollfehler

See Also:
Constant Field Values

RECORD_TOO_BIG

public static final int RECORD_TOO_BIG
Fehlercode: Datensatz zu lang

See Also:
Constant Field Values

REMOTE

public static final int REMOTE
Fehlercode: Fehler beim Remotesystem

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
Fehlercode: Unbekannter Fehler

See Also:
Constant Field Values
Constructor Detail

CommException

public CommException()
Konstruktor ohne Parameter, erzeugt unbekanten Fehler.


CommException

public CommException(Exception e)
Konstruktor mit Exception-Parameter. Erzeugt unbekannten Fehler mit dem Exception-Text als Fehlertext.

Parameters:
e - Exception

CommException

public CommException(Exception e,
                     int code)
Konstruktor mit Exception-Parameter und Fehlercode. Benutzt Exception-Text als Fehlertext.

Parameters:
e - Exception
code - Fehlercode

CommException

public CommException(Exception e,
                     int code,
                     String text)
Konstruktor mit allen Parametern.

Parameters:
e - Exception, die zum Fehler führte.
code - Fehlercode
text - Fehlertext, kann null sein.

CommException

public CommException(int code)
Konstruktor mit Fehlercode, erzeugt Standardtext.

Parameters:
code - - Fehlercode

CommException

public CommException(int code,
                     String text)
Konstruktor mit Fehlercode und Fehlertext.

Parameters:
code - Fehlercode
text - Fehlertext

CommException

public CommException(String text)
Konstruktor mit Fehlertext.

Parameters:
text - - Fehlertext
Method Detail

getCodeText

public static String getCodeText(int code)
Bekannte Fehlernummern in Text umwandeln.

Parameters:
code - Fehlernummer
Returns:
Fehlertext


Copyright © 2008 MvC Systemsoftware.