public class FwkException extends java.lang.RuntimeException implements FwkExceptionInterface
,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
version |
ERROR, INFORMATIONAL, WARNING| Modifier | Constructor and Description |
|---|---|
protected |
FwkException()
The default constructor.
|
|
FwkException(int number,
java.lang.String filename,
java.lang.String revision,
java.lang.String ident,
java.lang.String parameter,
java.lang.Object srcObj,
java.lang.Throwable srcThr)
The constructor of the execption.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
Get the sourcecode filename of the exception.
|
java.lang.String |
getCodeVersion()
Get the revision of the sourcecode file of the exception.
|
java.lang.String |
getFilename()
Get the current exception source filename.
|
FwkArrayInterface |
getFwkMimeTypes()
Return the mimetypes of this component.
|
java.lang.String |
getIdent()
Get the current ident of the exception.
|
java.lang.String |
getMessage()
Get the message of the exception.
|
int |
getNumber()
Get the error number of the exception.
|
java.lang.String |
getParameter()
Get the parameter string of the exception.
|
java.lang.String |
getParams()
This function returns a string containing all parameter of the object.
|
java.lang.String |
getPresentationString()
Retrieves the representation string.
|
java.lang.String |
getPresentationString(java.util.Locale l)
Retrieves the representation string.
|
java.lang.Object |
getSourceObject()
Get the source object of the exception.
|
java.lang.Throwable |
getSourceThrowable()
Get the source throwable of the exception.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
release()
Release the object.
|
void |
setClassName(java.lang.String className)
Set the class name of the source of the exception.
|
void |
setCodeVersion(java.lang.String newVersion)
Set the revision of the sourcecode file of the exception.
|
void |
setFilename(java.lang.String newFilename)
Set the filename where the exception was thrown.
|
void |
setIdent(java.lang.String newIdent)
Set the identification of the exception.
|
void |
setNumber(int number)
Set the error number of the exception.
|
void |
setParameter(java.lang.String newParameter)
Set the parameter string of the exception.
|
void |
setSourceObject(java.lang.Object srcObject)
Set the source object of the exception.
|
void |
setSourceThrowable(java.lang.Throwable srcThrowable)
Set the source throwable of the exception.
|
java.lang.String |
sourceThrowableToString()
Returns the string representation of the source exception.
|
java.lang.String |
toString()
This function returns a string containing the string
representation of the object.
|
void |
write()
Write the exception.
|
public static final java.lang.String version
protected FwkException()
public FwkException(int number,
java.lang.String filename,
java.lang.String revision,
java.lang.String ident,
java.lang.String parameter,
java.lang.Object srcObj,
java.lang.Throwable srcThr)
number - The error number of the exception.
Use the predefined numbers from ErrorNumber classfilename - The Java filename in which the problem occurred.revision - The version of the sourcecode file.ident - The identifier of the exception. It shoudl be uniq inside
one source code file to find the place where the
exception was thrown.parameter - The parameter string of the exception.
It depends on the message number.srcObj - The object that has this exception thrown.srcThr - The throwable that is the source for that exception.ErrorNumberpublic java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacepublic void release()
release in interface FwkInterfacepublic FwkArrayInterface getFwkMimeTypes()
public java.lang.String getPresentationString(java.util.Locale l)
getPresentationString in interface FwkPresentationInterfacel - The Locale object or null.public java.lang.String getPresentationString()
getPresentationString in interface FwkPresentationInterfacepublic void write()
write in interface FwkExceptionInterfacepublic void setIdent(java.lang.String newIdent)
setIdent in interface FwkExceptionInterfaceident - The new uniq identifier of the exception.getIdentpublic java.lang.String getIdent()
getIdent in interface FwkExceptionInterfacesetIdentpublic void setFilename(java.lang.String newFilename)
setFilename in interface FwkExceptionInterfacefilename - The name of the file.getFilenamepublic java.lang.String getFilename()
getFilename in interface FwkExceptionInterfacesetFilenamepublic void setNumber(int number)
setNumber in interface FwkExceptionInterfacenumber - The new error number of the exception.getNumberpublic int getNumber()
getNumber in interface FwkExceptionInterfacesetNumberpublic void setClassName(java.lang.String className)
setClassName in interface FwkExceptionInterfacefilename - The source class name of the exception.getFilenamepublic java.lang.String getClassName()
getClassName in interface FwkExceptionInterfacesetFilenamepublic void setCodeVersion(java.lang.String newVersion)
setCodeVersion in interface FwkExceptionInterfacerevision - The version of the code file.getCodeVersionpublic java.lang.String getCodeVersion()
getCodeVersion in interface FwkExceptionInterfacesetCodeVersionpublic void setParameter(java.lang.String newParameter)
setParameter in interface FwkExceptionInterfaceparameter - The new parameter string of the exception.getParameterpublic java.lang.String getParameter()
getParameter in interface FwkExceptionInterfacesetParamterpublic void setSourceObject(java.lang.Object srcObject)
setSourceObject in interface FwkExceptionInterfacesrcObject - The source object of the exception.getSourceObjectpublic java.lang.Object getSourceObject()
getSourceObject in interface FwkExceptionInterfacesetSourceObjectpublic void setSourceThrowable(java.lang.Throwable srcThrowable)
setSourceThrowable in interface FwkExceptionInterfacesrcThrowable - The source throwable of the exception.getSourceThrowablepublic java.lang.Throwable getSourceThrowable()
getSourceThrowable in interface FwkExceptionInterfacesetSourceThrowablepublic java.lang.String sourceThrowableToString()
public java.lang.String getParams()
toStringpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.ThrowablegetParams