Source code for botorch.exceptions.errors

#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

r"""
Botorch Errors.
"""


[docs]class BotorchError(Exception): r"""Base botorch exception.""" pass
[docs]class CandidateGenerationError(BotorchError): r"""Exception raised during generating candidates.""" pass
[docs]class InputDataError(BotorchError): r"""Exception raised when input data does not comply with conventions.""" pass
[docs]class UnsupportedError(BotorchError): r"""Currently unsupported feature.""" pass
[docs]class BotorchTensorDimensionError(BotorchError): r"""Exception raised when a tensor violates a botorch convention.""" pass
[docs]class ModelFittingError(Exception): r"""Exception raised when attempts to fit a model terminate unsuccessfully.""" pass