| |
|
| java.lang.Object org.andromda.core.common.ExceptionRecorder
ExceptionRecorder | public class ExceptionRecorder (Code) | |
ExceptionRecorder provides a function to record an exception to a file along with the trace data if active.
author: Martin West |
FILE_HEADER | final static String FILE_HEADER(Code) | | File header constant
|
INFORMATION_UNAVAILABLE | final static String INFORMATION_UNAVAILABLE(Code) | | Information not available constant
|
RUN_JDK | final static String RUN_JDK(Code) | | Run line jdk constant
|
RUN_SYSTEM | final static String RUN_SYSTEM(Code) | | Run line system constant
|
getExceptionDirectory | public File getExceptionDirectory()(Code) | | Returns the directory to which the exceptions are written.
the exception directory as a java.io.File instance. |
getUniqueName | protected synchronized String getUniqueName(String prefix)(Code) | | Gets a unique file name.
|
instance | public static ExceptionRecorder instance()(Code) | | Gets the shared instance of the ExceptionRecorder.
the shared ExceptionRecorder instance. |
record | public String record(Throwable throwable)(Code) | |
Writes out the exception to a file along with trace data if active. The file name is of the form sYYMMDDHHMMSS
<_nn>.exc where YY..SS is the timestamp <_nn>is an ascending sequence number when multiple exceptions occur in
the same second. Returns the filename of the generated exception report.
Parameters: throwable - to record. |
record | public String record(String errorMessage, Throwable throwable)(Code) | |
Writes out the exception to a file along with trace data if active. The file name is of the form sYYMMDDHHMMSS
<_nn>.exc where YY..SS is the timestamp <_nn>is an ascending sequence number when multiple exceptions occur in
the same second. Returns the filename of the generated exception report.
Parameters: errorMessage - to log with the exception report. Parameters: throwable - to record. |
record | public String record(String message, Throwable throwable, String prefix)(Code) | |
Writes out the exception to a file along with trace data if active. The file name is of the form sYYMMDDHHMMSS
<_nn>.exc where YY..SS is the timestamp <_nn>is an ascending sequence number when multiple exceptions occur in
the same second.
Parameters: message - diagnostic message Parameters: throwable - exception to record. Parameters: prefix - for the file name. |
|
|
|