public static class CronSyntaxException.Builder extends Object
CronSyntaxException.| Modifier and Type | Method and Description |
|---|---|
CronSyntaxException |
build()
Returns the completed exception.
|
CronSyntaxException.Builder |
cause(Throwable cause)
Sets the cause of the exception.
|
CronSyntaxException.Builder |
cronExpression(String cronExpression)
Sets the cron expression that caused the exception.
|
CronSyntaxException.Builder |
errorCode(ErrorCode errorCode)
Sets the error code for the exception.
|
CronSyntaxException.Builder |
errorOffset(int errorOffset)
Sets the error code for the exception.
|
CronSyntaxException.Builder |
value(char value)
Sets the value that caused the exception.
|
CronSyntaxException.Builder |
value(String value)
Sets the value that caused the exception.
|
public CronSyntaxException.Builder cronExpression(@Nullable String cronExpression)
"" is used.public CronSyntaxException.Builder value(@Nullable String value)
FEB-XYZ, then "XYZ" should be set for the value.public CronSyntaxException.Builder value(char value)
value(String.valueOf(value)).public CronSyntaxException.Builder errorCode(@Nullable ErrorCode errorCode)
ErrorCode.INTERNAL_PARSER_FAILURE is used.public CronSyntaxException.Builder errorOffset(int errorOffset)
-1 is used.public CronSyntaxException.Builder cause(@Nullable Throwable cause)
public CronSyntaxException build()
Copyright © 2017 Atlassian. All rights reserved.