Code example for ParseException

Methods: getMessage

0
	private CronExpr(String cronExpression, DateTimeZone dtz) throws IllegalArgumentException {
		try { 
			quartzExpr = new CronExpression(cronExpression);
			quartzExpr.setTimeZone(dtz.toTimeZone());
		} catch (ParseException e) {
			throw new IllegalArgumentException(e.getMessage());
		} 
	} 
 
	public @Nullable Long getTimeAfter(long afterTimeUtcEpochMills) {
		Date res = quartzExpr.getTimeAfter(new Date(afterTimeUtcEpochMills));
		return res == null ? null : res.getTime();
	} 
 
	public @Nullable Long getTimeAfterNow() {
		return getTimeAfter(System.currentTimeMillis());
	} 
 
	public boolean hasTimeAfter(long afterTimeUtcEpochMills) {
		return getTimeAfter(afterTimeUtcEpochMills) != null;
	}