| 64 | |
| 65 | |
| 66 | class UnresolvedExpNamesError(InvalidArgumentError): |
| 67 | NAME = "experiment name" |
| 68 | |
| 69 | def __init__( |
| 70 | self, |
| 71 | unresolved_list: Collection[str], |
| 72 | *args, |
| 73 | git_remote: Optional[str] = None, |
| 74 | ): |
| 75 | unresolved_names = "; ".join(unresolved_list) |
| 76 | if not git_remote: |
| 77 | if len(unresolved_list) > 1: |
| 78 | super().__init__(f"'{unresolved_names}' are not valid {self.NAME}s") |
| 79 | else: |
| 80 | super().__init__(f"'{unresolved_names}' is not a valid {self.NAME}") |
| 81 | else: |
| 82 | super().__init__( |
| 83 | f"Experiment '{unresolved_names}' does not exist in '{git_remote}'" |
| 84 | ) |
| 85 | |
| 86 | |
| 87 | class UnresolvedQueueExpNamesError(UnresolvedExpNamesError): |
no outgoing calls
no test coverage detected