
    sh                     h    S SK Jr   " S S\5      rS\S\SS4S jr " S	 S
\5      r " S S\5      rg)    )Enumc                   ,    \ rS rSrSrSrSrSrSrSr	Sr
g)	ExportErrorType                   N)__name__
__module____qualname____firstlineno__INVALID_INPUT_TYPEINVALID_OUTPUT_TYPEVIOLATION_OF_SPECNOT_SUPPORTEDMISSING_PROPERTYUNINITIALIZED__static_attributes__r       g/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/torch/_export/error.pyr   r      s.       M  Mr   r   pred
assert_msgreturnNc                 (    U (       d  [        U5      eg)z
This is exir's custom assert method. It internally just throws InternalError.
Note that the sole purpose is to throw our own error while maintaining similar syntax
as python assert.
N)InternalError)r   r   s     r   internal_assertr      s     J'' r   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )r   $   z
Raised when an internal invariance is violated in EXIR stack.
Should hint users to report a bug to dev and expose the original
error message.
messager   Nc                 $   > [         TU ]  U5        g )Nsuper__init__)selfr"   	__class__s     r   r&   InternalError.__init__+   s    !r   r   )	r   r   r   r   __doc__strr&   r   __classcell__r(   s   @r   r   r   $   s     " " " "r   r   c                   <   ^  \ rS rSrSrS\S\SS4U 4S jjrSrU =r	$ )	ExportError/   z
This type of exception is raised for errors that are directly caused by the user
code. In general, user errors happen during model authoring, tracing, using our public
facing APIs, and writing graph passes.

error_coder"   r   Nc                 4   > SU S3n[         TU ]  X2-   5        g )N[z]: r$   )r'   r1   r"   prefixr(   s       r   r&   ExportError.__init__6   s!    ZL$)*r   r   )
r   r   r   r   r*   r   r+   r&   r   r,   r-   s   @r   r/   r/   /   s'    +? +S +T + +r   r/   )	enumr   r   boolr+   r   	Exceptionr   r/   r   r   r   <module>r9      sF    d *($ (C (D ("I "	+) 	+r   