Class: | DimErrorHandler | |
---|---|---|
Library: | DIM | |
Author: | C. Gaspar | |
Version: | v1.0 | Update :Thu Feb 11 15:52:46 1999 |
Utility Class - Implements an Error Handler for DIM
Servers and Clients
If the user declares
an errorHandler the method errorHandler is called when an error is detected
otherwise an error message is printed on stdout.
Constructors :
- DimErrorHandler ( ) ; Declare an errorHandler
Public Functions :
Example :
DimErrorHandler erid =
new DimErrorHandler()
{
public void errorHandler(int
severity, int code, String msg)
{
if(code == DIMSVCDUPLC)
System.out.println("Service
already declared");
System.out.println("Error: "+msg+"
sev: "+severity);
}
};