Package de.adwin.driver
Class ADwinCommunicationError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.adwin.driver.ADwinCommunicationError
-
- All Implemented Interfaces:
Serializable
public class ADwinCommunicationError extends Exception
Exception for errors that occur during communication with the ADwin system. Additional info is provided by thegetCode
method.- See Also:
getCode()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ADwinCommunicationError()
ADwinCommunicationError(String Str)
ADwinCommunicationError(String Str, int code)
ADwinCommunicationError(String StrEnglish, String StrGer, int LangID)
ADwinCommunicationError(String StrEnglish, String StrGer, int LangID, int code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Gets a code that provides additional info for the error.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ADwinCommunicationError
public ADwinCommunicationError(String StrEnglish, String StrGer, int LangID, int code)
-
ADwinCommunicationError
public ADwinCommunicationError(String StrEnglish, String StrGer, int LangID)
-
ADwinCommunicationError
public ADwinCommunicationError(String Str, int code)
-
ADwinCommunicationError
public ADwinCommunicationError(String Str)
-
ADwinCommunicationError
public ADwinCommunicationError()
-
-
Method Detail
-
getCode
public int getCode()
Gets a code that provides additional info for the error.1 Timeout when writing to the ADwin system 2 Timeout when reading from the ADwin system 20 Wrong version (of a binary or BTL file) 100 Data field is too small or does not exist 101 Fifo does not contain enough free elements 102 Too few elements have been written to the fifo 150 Not enough memory or memory is damaged 200 File not found 202 File is not a binary file / invalid binary file 204 File is not a BTL file 205 The binary file has been built for a different processor 2000 Network error 2001 Network timeout 2002 Wrong Password given 4000 Error when synchronizing on the ADwin system
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-