Download lib/python3.12/site-packages/hydra/errors.py from parallel-reasoner/env-full: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/parallel-reasoner/env-full/resolve/ef9f3b242ae7e3f7f6941c7127ec00ad092d910e/lib/python3.12/site-packages/hydra/errors.py
- Command line
-
hf download hf://parallel-reasoner/env-full@ef9f3b242ae7e3f7f6941c7127ec00ad092d910e/lib/python3.12/site-packages/hydra/errors.py
-
curl -L -o errors.py https://huggingface.co/parallel-reasoner/env-full/resolve/ef9f3b242ae7e3f7f6941c7127ec00ad092d910e/lib/python3.12/site-packages/hydra/errors.py
1.07 kB
| # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved | |
| from typing import Optional, Sequence | |
| class HydraException(Exception): | |
| ... | |
| class CompactHydraException(HydraException): | |
| ... | |
| class OverrideParseException(CompactHydraException): | |
| def __init__(self, override: str, message: str) -> None: | |
| super(OverrideParseException, self).__init__(message) | |
| self.override = override | |
| self.message = message | |
| class InstantiationException(CompactHydraException): | |
| ... | |
| class ConfigCompositionException(CompactHydraException): | |
| ... | |
| class SearchPathException(CompactHydraException): | |
| ... | |
| class MissingConfigException(IOError, ConfigCompositionException): | |
| def __init__( | |
| self, | |
| message: str, | |
| missing_cfg_file: Optional[str] = None, | |
| options: Optional[Sequence[str]] = None, | |
| ) -> None: | |
| super(MissingConfigException, self).__init__(message) | |
| self.missing_cfg_file = missing_cfg_file | |
| self.options = options | |
| class HydraDeprecationError(HydraException): | |
| ... | |