mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-02 02:29:16 -05:00
24 lines
544 B
Python
24 lines
544 B
Python
"""
|
|
Exception hierarchy for TinyTorch CLI.
|
|
"""
|
|
|
|
class TinyTorchCLIError(Exception):
|
|
"""Base exception for all CLI errors."""
|
|
pass
|
|
|
|
class ValidationError(TinyTorchCLIError):
|
|
"""Raised when validation fails."""
|
|
pass
|
|
|
|
class ExecutionError(TinyTorchCLIError):
|
|
"""Raised when command execution fails."""
|
|
pass
|
|
|
|
class EnvironmentError(TinyTorchCLIError):
|
|
"""Raised when environment setup is invalid."""
|
|
pass
|
|
|
|
class ModuleNotFoundError(TinyTorchCLIError):
|
|
"""Raised when a requested module is not found."""
|
|
pass
|