|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.cron.CronSyntaxException
public class CronSyntaxException
Signals that there is a syntax error in a given cron expression.
| Nested Class Summary | |
|---|---|
static class |
CronSyntaxException.Builder
A builder for constructing a CronSyntaxException. |
| Method Summary | |
|---|---|
static CronSyntaxException.Builder |
builder()
Returns a builder for constructing a CronSyntaxExpression. |
String |
getCronExpression()
Returns the cron expression that could not be parsed. |
ErrorCode |
getErrorCode()
Returns the error code identifying the underlying cause of the parse failure. |
int |
getErrorOffset()
Returns the 0-based index of the character at which the parse error was identified. |
String |
getValue()
Returns the value that caused the exception to be thrown, if that information is available. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
@Nonnull public ErrorCode getErrorCode()
@Nonnull public String getCronExpression()
@Nullable public String getValue()
4,10-13,42-47, then the value would be "42"
because 31 is the maximum value permitted for that field.
null if that is irrelevant to the
error or if the cause is unknownpublic int getErrorOffset()
0-based index of the character at which the parse error was identified.
0-based index of the character at which the parse error was identified,
or -1 if the index is not known.public static CronSyntaxException.Builder builder()
CronSyntaxExpression.
CronSyntaxExpression.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||