public interface FwkExceptionWriterInterface extends FwkInterface
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
where
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
+---+-+-+-----------------------+-------------------------------+
|Sev|C|R| Facility | Code |
+---+-+-+-----------------------+-------------------------------+
Sev
- is the severity code (Typ der Meldung)
C - is the Customer code flag
R - is a reserved bit
Facility - is the facility code
Code - is the facility's status code
00 - Success
01 - Informational
10 - Warning
11 - Error
LibraryWriter
,
FileWriter
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the communication to the event logger.
|
java.lang.Throwable |
getException()
Returns the exception that is occurred,
if the writer isn't alive.
|
void |
init(java.lang.String program,
java.lang.String version,
java.lang.String[] args)
Initialize the communication to the event logger.
|
boolean |
isAlive()
Returns whether the writer was successfully initialized.
|
boolean |
isError(int code)
Return true if event code signals an error.
|
boolean |
isInformation(int code)
Return true if event code signals an informational message.
|
boolean |
isOccurred()
Indicates whether an event is occurred.
|
boolean |
isWarning(int code)
Return true if event code signals a warning.
|
void |
put(FwkExceptionInterface exception)
Put an event to the event logger.
|
void |
put(int code,
java.lang.String className,
java.lang.String file,
java.lang.String revision,
java.lang.String lineIdent,
java.lang.String parameter)
Put an event to the event logger.
|
void |
reset()
Reset the the current error messages.
|
getVersion, release
boolean isAlive()
java.lang.Throwable getException()
void init(java.lang.String program, java.lang.String version, java.lang.String[] args)
name
- Name of program.version
- Version of the program.args
- Main program parameters.void put(int code, java.lang.String className, java.lang.String file, java.lang.String revision, java.lang.String lineIdent, java.lang.String parameter)
The compiler definition NOTRACE suppresses the message AO_EVENT. The message AO_EVENT is used to trace back the calling sequence of the function where the error occurs.
If this function is called an error is occurred and the flag is set.
number
- Number of the event to report.class
- Name of the class that has thrown the exception.file
- Name of the sourcefile.revision
- Revision of the sourcefile.lineIdent
- Identification string for the line in the sourcefile.parameter
- Event parameter.void put(FwkExceptionInterface exception)
The compiler definition NOTRACE suppresses the message AO_EVENT. The message AO_EVENT is used to trace back the calling sequence of the function where the error occurs.
If this function is called an error is occurred and the flag is set.
exception
- The exception that should be written.void close()
boolean isError(int code)
code
- The event codeErrorNumber
boolean isWarning(int code)
code
- The event codeErrorNumber
boolean isInformation(int code)
code
- The event codeErrorNumber
boolean isOccurred()
void reset()