File size: 351 Bytes
cabe7a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """Custom exceptions for the customer support environment."""
class EnvError(Exception):
"""Base exception for all environment errors."""
class EnvironmentNotResetError(EnvError):
"""Raised when step() is called before reset()."""
class EnvironmentDoneError(EnvError):
"""Raised when step() is called after the episode has ended."""
|