public class CronSyntaxException extends SchedulerServiceException
| Modifier and Type | Class and Description |
|---|---|
static class |
CronSyntaxException.Builder
A builder for constructing a
CronSyntaxException. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString@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.Copyright © 2017 Atlassian. All rights reserved.