private Integer computeNextExecutionTime(String schedule, ZonedDateTime time) throws InvalidInputException {
    CronType cronType = CronType.QUARTZ;

    CronDefinition cronDefinition = CronDefinitionBuilder.instanceDefinitionFor(cronType);
    CronParser parser = new CronParser(cronDefinition);

    // Get date for last execution
    try {
      ExecutionTime executionTime = ExecutionTime.forCron(parser.parse(schedule));
      Optional<ZonedDateTime> nextExecution = executionTime.nextExecution(time);
      if (!nextExecution.isPresent()) {
        // no valid next execution time.
        return null;
      }
      return (int) nextExecution.get().toEpochSecond();
    } catch (IllegalArgumentException iae) {
      String message = "Invalid " + cronType + " schedule expression: '" + schedule + "'";
      LOG.error(message, iae);
      throw new InvalidInputException(message);
    }
  }
Abbreviates the error message to the given size.

There might be error messages which may also contain a stack trace.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java