|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.parc.AbstractError
AbstractError class. Provides basic error functionality common to all interface Errors.
Constructor Summary | |
AbstractError()
default constructor. |
|
AbstractError(ErrorType type)
default constructor. |
Method Summary | |
java.lang.Exception |
getException()
If the ErrorType has the printStackTrace() flag enabled, this method should return the exception object so that the stack trace can be written to the logfile. |
java.util.Properties |
getProperties()
Return all properties |
java.lang.String |
getProperty(java.lang.String name)
Lookup a single property. |
Record |
getRecord()
Get the Record which has the error. |
ErrorType |
getType()
Get the ErrorType object. |
void |
setException(java.lang.Exception ex)
Set the exception object being logged. |
void |
setRecord(Record record)
Sets the Record to which this Error belongs. |
void |
setType(ErrorType type)
Set the ErrorType object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.rhi.architecture.parc.Error |
generateLogMessage |
Constructor Detail |
public AbstractError()
public AbstractError(ErrorType type)
type
- Method Detail |
public ErrorType getType()
getType
in interface Error
public void setType(ErrorType type)
type
- public java.lang.Exception getException()
public void setException(java.lang.Exception ex)
ex
- - the Exception that caused the error.public Record getRecord()
getRecord
in interface Error
public void setRecord(Record record)
record
- public java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String name)
name
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |