Nachbearbeitung: Konfigurationslade- und Parsefehler einheitlich
klassifiziert
This commit is contained in:
@@ -11,6 +11,7 @@ import org.apache.logging.log4j.Logger;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.in.cli.SchedulerBatchCommand;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.bootstrap.validation.InvalidStartConfigurationException;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.bootstrap.validation.StartConfigurationValidator;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.configuration.ConfigurationLoadingException;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.configuration.PropertiesConfigurationPortAdapter;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.fingerprint.Sha256FingerprintAdapter;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.lock.FilesystemRunLockPortAdapter;
|
||||
@@ -249,12 +250,12 @@ public class BootstrapRunner {
|
||||
BatchRunOutcome outcome = command.run(runContext);
|
||||
runContext.setEndInstant(Instant.now());
|
||||
return mapOutcomeToExitCode(outcome, runContext);
|
||||
} catch (ConfigurationLoadingException e) {
|
||||
LOG.error("Configuration loading failed: {}", e.getMessage());
|
||||
return 1;
|
||||
} catch (InvalidStartConfigurationException e) {
|
||||
LOG.error("Configuration validation failed: {}", e.getMessage());
|
||||
return 1;
|
||||
} catch (IllegalStateException e) {
|
||||
LOG.error("Configuration loading failed: {}", e.getMessage());
|
||||
return 1;
|
||||
} catch (DocumentPersistenceException e) {
|
||||
LOG.error("Persistence operation failed: {}", e.getMessage(), e);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user