optuna.exceptions

The exceptions module defines Optuna-specific exceptions deriving from a base OptunaError class. Of special importance for library users is the TrialPruned exception to be raised if optuna.trial.Trial.should_prune() returns True for a trial that should be pruned.

optuna.exceptions.OptunaError

Base class for Optuna specific errors.

optuna.exceptions.TrialPruned

Exception for pruned trials.

optuna.exceptions.CLIUsageError

Exception for CLI.

optuna.exceptions.StorageInternalError

Exception for storage operation.

optuna.exceptions.DuplicatedStudyError

Exception for a duplicated study name.