public class QuartzParseExceptionMapper extends Object
ParseException messages from Quartz to our more informative and
translatable exceptions in the CronSyntaxException family.
In general, Quartz returns garbage for the error offset in the ParseExceptions that it
throws. This is because it has already pulled apart the cron expression with StringTokenizer
and no longer knows the offset within the original string. The damage is pretty much impossible
to repair, so for most of these we simply discard the known incorrect error offset. Correctly
reporting -1 to indicate that the offset isn't known is better than giving an offset that
is probably wrong anyway.
| Constructor and Description |
|---|
QuartzParseExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
static CronSyntaxException |
mapException(String cronExpression,
ParseException pe) |
public static CronSyntaxException mapException(String cronExpression, ParseException pe)
Copyright © 2017 Atlassian. All rights reserved.