public class FwkExceptionWriter extends Fwk implements FwkExceptionWriterInterface, FwkInterface
javac -ExceptionWriter.Class
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| ExceptionWriter.Class | classname | com.highqsoft.fwk.exception.FwkLibraryWriter | The classname of the eception writer. |
,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
version |
| 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.
|
static FwkExceptionWriter |
getInstance()
Get the singleton instance of the object.
|
java.lang.String |
getParams()
This function returns a string containing all parameters
of the object.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
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 fileName,
java.lang.String version,
java.lang.String lineIdent,
java.lang.String parameter)
Put an event to the event logger.
|
void |
reset()
Reset the the current error messages.
|
java.lang.String |
toString()
Get the string representation of the object.
|
static void |
write(FwkExceptionInterface exception)
Put an exception to the event logger.
|
static void |
write(int code,
java.lang.String className,
java.lang.String fileName,
java.lang.String version,
java.lang.String lineIdent,
java.lang.String parameter)
Put an event to the event logger.
|
getNiceVersion, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreleasepublic static final java.lang.String version
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class Fwkpublic static FwkExceptionWriter getInstance()
public boolean isAlive()
isAlive in interface FwkExceptionWriterInterfacepublic java.lang.Throwable getException()
getException in interface FwkExceptionWriterInterfacepublic void init(java.lang.String program,
java.lang.String version,
java.lang.String[] args)
init in interface FwkExceptionWriterInterfacename - Name of program.version - Version of the program.args - Main program parameters.public static void write(int code,
java.lang.String className,
java.lang.String fileName,
java.lang.String version,
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 occures.
If this function is called an error is occurred and the flag is set.
number - Number of the event to report.className - Name of the class that has thrown the exception.fileName - Name of the sourcefile.revision - Revision of the sourcefile.lineIdent - Identification string for the line in the sourcefile.parameter - Event parameter.public void put(int code,
java.lang.String className,
java.lang.String fileName,
java.lang.String version,
java.lang.String lineIdent,
java.lang.String parameter)
FwkExceptionWriterInterfaceThe 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.
put in interface FwkExceptionWriterInterfacefileName - Name of the sourcefile.version - Revision of the sourcefile.lineIdent - Identification string for the line in the sourcefile.parameter - Event parameter.public static void write(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 occures.
If this function is called an error is occurred and the flag is set.
exception - The FwkException to be written.public void put(FwkExceptionInterface exception)
FwkExceptionWriterInterfaceThe 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.
put in interface FwkExceptionWriterInterfaceexception - The exception that should be written.public void close()
close in interface FwkExceptionWriterInterfacepublic boolean isError(int code)
isError in interface FwkExceptionWriterInterfacecode - The event codeErrorNumberpublic boolean isWarning(int code)
isWarning in interface FwkExceptionWriterInterfacecode - The event codeErrorNumberpublic boolean isInformation(int code)
isInformation in interface FwkExceptionWriterInterfacecode - The event codeErrorNumberpublic boolean isOccurred()
isOccurred in interface FwkExceptionWriterInterfacepublic void reset()
reset in interface FwkExceptionWriterInterfacepublic java.lang.String getParams()
public java.lang.String toString()
toString in class java.lang.Object