|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.common.ExceptionRecorder
public class ExceptionRecorder
ExceptionRecorder provides a function to record an exception to a file along with the trace data if active.
| Method Summary | |
|---|---|
java.io.File |
getExceptionDirectory()
Returns the directory to which the exceptions are written. |
protected java.lang.String |
getUniqueName(java.lang.String prefix)
Gets a unique file name. |
static ExceptionRecorder |
instance()
Gets the shared instance of the ExceptionRecorder. |
java.lang.String |
record(java.lang.String errorMessage,
java.lang.Throwable throwable)
Writes out the exception to a file along with trace data if active. |
java.lang.String |
record(java.lang.String message,
java.lang.Throwable throwable,
java.lang.String prefix)
Writes out the exception to a file along with trace data if active. |
java.lang.String |
record(java.lang.Throwable throwable)
Writes out the exception to a file along with trace data if active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ExceptionRecorder instance()
public java.lang.String record(java.lang.Throwable throwable)
throwable - to record.
public java.lang.String record(java.lang.String errorMessage,
java.lang.Throwable throwable)
errorMessage - to log with the exception report.throwable - to record.
public java.lang.String record(java.lang.String message,
java.lang.Throwable throwable,
java.lang.String prefix)
message - diagnostic messagethrowable - exception to record.prefix - for the file name.protected java.lang.String getUniqueName(java.lang.String prefix)
public java.io.File getExceptionDirectory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||