SkipException extension that transforms a skipped method into a failed method based on
a time trigger.
By default the time format is yyyy/MM/dd (according to SimpleDateFormat). You can
customize this by using the specialized constructors. Supported date formats are according to the
SimpleDateFormat.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private Calendar | |
| private DateFormat | |
| private DateFormat | |
| private final SimpleDateFormat | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | TimeBombSkipException(String
exception message msg, Date time limit after which the SKIP becomes a FAILURE expirationDate)Creates a |
| public | TimeBombSkipException(String
exception message msg, Date time limit after which the SKIP becomes a FAILURE expirationDate, String format for the time comparison format)Creates a |
| public | TimeBombSkipException(String
exception message msg, String time limit after which the SKIP becomes a FAILURE date)Creates a |
| public | TimeBombSkipException(String
exception message msg, String time limit after which the SKIP becomes a FAILURE date, String format of the passed in format)date and of the time comparisonCreates a |
| public | TimeBombSkipException(String
exception message msg, String time limit after which the SKIP becomes a FAILURE date, String format of the passed in inFormat, String dateformat of the time comparison outFormat)Creates a |
| public | TimeBombSkipException(String
exception message msg, Date time limit after which the SKIP becomes a FAILURE expirationDate, Throwable the cause (which is saved for later retrieval by the cause)getCause() method).
(A null value is permitted, and indicates that the cause is nonexistent or
unknown.)Creates a |
| public | TimeBombSkipException(String
exception message msg, Date time limit after which the SKIP becomes a FAILURE expirationDate, String format for the time comparison format, Throwable the cause (which is saved for later retrieval by the cause)getCause() method).
(A null value is permitted, and indicates that the cause is nonexistent or
unknown.)Creates a |
| public | TimeBombSkipException(String
exception message msg, String time limit after which the SKIP becomes a FAILURE date, Throwable the cause (which is saved for later retrieval by the cause)getCause() method).
(A null value is permitted, and indicates that the cause is nonexistent or
unknown.)Creates a |
| public | TimeBombSkipException(String
exception message msg, String time limit after which the SKIP becomes a FAILURE date, String format of the passed in format, Throwable date and of the time comparisonthe cause (which is saved for later retrieval by the cause)getCause() method).
(A null value is permitted, and indicates that the cause is nonexistent or
unknown.)Creates a |
| public | TimeBombSkipException(String
exception message msg, String time limit after which the SKIP becomes a FAILURE date, String format of the passed in inFormat, String dateformat of the time comparison outFormat, Throwable the cause (which is saved for later retrieval by the cause)getCause() method).
(A null value is permitted, and indicates that the cause is nonexistent or
unknown.)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public String | getMessage()
Overrides java. |
| private void | |
| private void | |
| public boolean | isSkip()
Overrides org. true) or a failure (
false).
|
| public void | printStackTrace(PrintStream
PrintStream to use for outputOverrides java. |
| public void | printStackTrace(PrintWriter
PrintWriter to use for outputOverrides java. |
| FORMAT | back to summary |
|---|---|
| private static final String FORMAT | |
| m_expireDate | back to summary |
|---|---|
| private Calendar m_expireDate | |
| m_inFormat | back to summary |
|---|---|
| private DateFormat m_inFormat | |
| m_outFormat | back to summary |
|---|---|
| private DateFormat m_outFormat | |
| sdf | back to summary |
|---|---|
| private final SimpleDateFormat sdf | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, Date expirationDate) Creates a | |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, Date expirationDate, String format) Creates a | |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, String date) Creates a | |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, String date, String format) Creates a | |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, String date, String inFormat, String outFormat) Creates a | |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, Date expirationDate, Throwable cause) Creates a
| |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, Date expirationDate, String format, Throwable cause) Creates a
| |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, String date, Throwable cause) Creates a
| |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, String date, String format, Throwable cause) Creates a
| |
| TimeBombSkipException | back to summary |
|---|---|
| public TimeBombSkipException(String msg, String date, String inFormat, String outFormat, Throwable cause) Creates a
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| initExpireDate | back to summary |
|---|---|
| private void initExpireDate(Date expireDate) | |
| initExpireDate | back to summary |
|---|---|
| private void initExpireDate(String date) | |
| isSkip | back to summary |
|---|---|
| public boolean isSkip() Overrides org. Doc from org. Flag if the current exception marks a skipped method (
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintStream s) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print stream.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintWriter s) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print writer.
| |