|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.common.ExceptionRecorder
public final class ExceptionRecorder
ExceptionRecorder provides a function to record an exception to a file along with the trace data if active.
| Field Summary | |
|---|---|
(package private) static String |
FILE_HEADER
File header constant |
(package private) static String |
INFORMATION_UNAVAILABLE
Information not available constant |
(package private) static String |
RUN_JDK
Run line jdk constant |
(package private) static String |
RUN_SYSTEM
Run line system constant |
| Method Summary | |
|---|---|
File |
getExceptionDirectory()
Returns the directory to which the exceptions are written. |
protected String |
getUniqueName(String prefix)
Gets a unique file name. |
static ExceptionRecorder |
instance()
Gets the shared instance of the ExceptionRecorder. |
String |
record(String errorMessage,
Throwable throwable)
Writes out the exception to a file along with trace data if active. |
String |
record(String message,
Throwable throwable,
String prefix)
Writes out the exception to a file along with trace data if active. |
String |
record(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 |
| Field Detail |
|---|
static final String FILE_HEADER
static final String RUN_SYSTEM
static final String RUN_JDK
static final String INFORMATION_UNAVAILABLE
| Method Detail |
|---|
public static ExceptionRecorder instance()
public String record(Throwable throwable)
throwable - to record.
public String record(String errorMessage,
Throwable throwable)
errorMessage - to log with the exception report.throwable - to record.
public String record(String message,
Throwable throwable,
String prefix)
message - diagnostic messagethrowable - exception to record.prefix - for the file name.
protected String getUniqueName(String prefix)
prefix -
public File getExceptionDirectory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||