public class FwkException extends java.lang.RuntimeException implements FwkExceptionInterface
,
Serialized FormModifier 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.ErrorNumber
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
public void release()
release
in interface FwkInterface
public FwkArrayInterface getFwkMimeTypes()
public java.lang.String getPresentationString(java.util.Locale l)
getPresentationString
in interface FwkPresentationInterface
l
- The Locale object or null.public java.lang.String getPresentationString()
getPresentationString
in interface FwkPresentationInterface
public void write()
write
in interface FwkExceptionInterface
public void setIdent(java.lang.String newIdent)
setIdent
in interface FwkExceptionInterface
ident
- The new uniq identifier of the exception.getIdent
public java.lang.String getIdent()
getIdent
in interface FwkExceptionInterface
setIdent
public void setFilename(java.lang.String newFilename)
setFilename
in interface FwkExceptionInterface
filename
- The name of the file.getFilename
public java.lang.String getFilename()
getFilename
in interface FwkExceptionInterface
setFilename
public void setNumber(int number)
setNumber
in interface FwkExceptionInterface
number
- The new error number of the exception.getNumber
public int getNumber()
getNumber
in interface FwkExceptionInterface
setNumber
public void setClassName(java.lang.String className)
setClassName
in interface FwkExceptionInterface
filename
- The source class name of the exception.getFilename
public java.lang.String getClassName()
getClassName
in interface FwkExceptionInterface
setFilename
public void setCodeVersion(java.lang.String newVersion)
setCodeVersion
in interface FwkExceptionInterface
revision
- The version of the code file.getCodeVersion
public java.lang.String getCodeVersion()
getCodeVersion
in interface FwkExceptionInterface
setCodeVersion
public void setParameter(java.lang.String newParameter)
setParameter
in interface FwkExceptionInterface
parameter
- The new parameter string of the exception.getParameter
public java.lang.String getParameter()
getParameter
in interface FwkExceptionInterface
setParamter
public void setSourceObject(java.lang.Object srcObject)
setSourceObject
in interface FwkExceptionInterface
srcObject
- The source object of the exception.getSourceObject
public java.lang.Object getSourceObject()
getSourceObject
in interface FwkExceptionInterface
setSourceObject
public void setSourceThrowable(java.lang.Throwable srcThrowable)
setSourceThrowable
in interface FwkExceptionInterface
srcThrowable
- The source throwable of the exception.getSourceThrowable
public java.lang.Throwable getSourceThrowable()
getSourceThrowable
in interface FwkExceptionInterface
setSourceThrowable
public java.lang.String sourceThrowableToString()
public java.lang.String getParams()
toString
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
getParams