
    hK                        S r  " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      rg))*z#Set of Error classes for gymnasium.c                       \ rS rSrSrSrg)Error   zError superclass. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       I/home/james-whalen/.local/lib/python3.13/site-packages/gymnasium/error.pyr   r      s    r   r   c                       \ rS rSrSrSrg)UnregisteredEnv	   zTRaised when the user requests an env from the registry that does not actually exist.r   Nr   r   r   r   r   r   	       ^r   r   c                       \ rS rSrSrSrg)NamespaceNotFound   zYRaised when the user requests an env from the registry where the namespace doesn't exist.r   Nr   r   r   r   r   r      s    cr   r   c                       \ rS rSrSrSrg)NameNotFound   zTRaised when the user requests an env from the registry where the name doesn't exist.r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrSrg)VersionNotFound   zWRaised when the user requests an env from the registry where the version doesn't exist.r   Nr   r   r   r   r   r      s    ar   r   c                       \ rS rSrSrSrg)DeprecatedEnv   z{Raised when the user requests an env from the registry with an older version number than the latest env with the same name.r   Nr   r   r   r   r   r      s     Fr   r   c                       \ rS rSrSrSrg)RegistrationError   zvRaised when the user attempts to register an invalid env. For example, an unversioned env when a versioned env exists.r   Nr   r   r   r   r    r       s     Ar   r    c                       \ rS rSrSrSrg)DependencyNotInstalled"   z4Raised when the user has not installed a dependency.r   Nr   r   r   r   r#   r#   "   s    >r   r#   c                       \ rS rSrSrSrg)UnsupportedMode&   zPRaised when the user requests a rendering mode not supported by the environment.r   Nr   r   r   r   r&   r&   &   s    Zr   r&   c                       \ rS rSrSrSrg)InvalidMetadata*   z8Raised when the metadata of an environment is not valid.r   Nr   r   r   r   r)   r)   *       Br   r)   c                       \ rS rSrSrSrg)ResetNeeded.   zQWhen the order enforcing is violated, i.e. step or render is called before reset.r   Nr   r   r   r   r-   r-   .   s    [r   r-   c                       \ rS rSrSrSrg)InvalidAction2   zNRaised when the user performs an action not contained within the action space.r   Nr   r   r   r   r0   r0   2   s    Xr   r0   c                       \ rS rSrSrSrg)MissingArgument6   z>Raised when a required argument in the initializer is missing.r   Nr   r   r   r   r3   r3   6   s    Hr   r3   c                       \ rS rSrSrSrg)InvalidProbability:   z5Raised when given an invalid value for a probability.r   Nr   r   r   r   r6   r6   :   s    ?r   r6   c                       \ rS rSrSrSrg)InvalidBound>   zHRaised when the clipping an array with invalid upper and/or lower bound.r   Nr   r   r   r   r9   r9   >   s    Rr   r9   c                       \ rS rSrSrSrg)DeprecatedWrapperC   z8Error message for importing an old version of a wrapper.r   Nr   r   r   r   r<   r<   C   r+   r   r<   c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r$ )AlreadyPendingCallErrorH   zRaised when `reset`, or `step` is called asynchronously (e.g. with `reset_async`, or `step_async` respectively), and `reset_async`, or `step_async` (respectively) is called again (without a complete call to `reset_wait`, or `step_wait` respectively).messagenamec                 0   > [         TU ]  U5        X l        gz/Initialises the exception with name attributes.Nsuper__init__rB   selfrA   rB   	__class__s      r   rG    AlreadyPendingCallError.__init__K       !	r   rB   	r   r   r	   r
   r   strrG   r   __classcell__rJ   s   @r   r?   r?   H   s!     E 3  r   r?   c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r$ )NoAsyncCallErrorQ   zyRaised when an asynchronous `reset`, or `step` is not running, but `reset_wait`, or `step_wait` (respectively) is called.rA   rB   c                 0   > [         TU ]  U5        X l        grD   rE   rH   s      r   rG   NoAsyncCallError.__init__T   rL   r   rM   rN   rQ   s   @r   rS   rS   Q   s!     D 3  r   rS   c                       \ rS rSrSrSrg)ClosedEnvironmentErrorZ   zCTrying to call `reset`, or `step`, while the environment is closed.r   Nr   r   r   r   rX   rX   Z   s    Mr   rX   c                       \ rS rSrSrSrg)CustomSpaceError^   zsThe space is a custom gymnasium.Space instance, and is not supported by `AsyncVectorEnv` with `shared_memory=True`.r   Nr   r   r   r   r[   r[   ^   s    }r   r[   N)r   	Exceptionr   r   r   r   r   r   r    r#   r&   r)   r-   r0   r3   r6   r9   ImportErrorr<   r?   rS   rX   r[   r   r   r   <module>r_      s   )I 
_e _d d_? _bo bFE FA A
?U ?[e [Ce C\% \YE YIe I@ @S5 S
C C
i y NY N~y ~r   