Ë
    ‡|Si�  ã                   óŽ   — d Z ddlmZmZ  G d„ de«      Z G d„ de«      Z G d„ de«      Z G d	„ d
e«      Z G d„ de«      Z	g d¢Z
y)z(Custom exceptions for wallet operations.é    )ÚHookRejectionErrorÚHookExecutionErrorc                   ó   — e Zd ZdZy)ÚWalletOperationErrorz%Base exception for wallet operations.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úQ/home/cursorai/projects/django-wallet-utils/src/django_wallet_utils/exceptions.pyr   r      s   „ Ù/àr   r   c                   ó>   ‡ — e Zd ZdZddededz  dedz  fˆ fd„Zˆ xZS )ÚInsufficientBalanceErrorz<Raised when user has insufficient balance for a transaction.NÚmessageÚ	availableÚ	requestedc                 ó@   •— t         ‰| �  |«       || _        || _        y ©N)ÚsuperÚ__init__r   r   )Úselfr   r   r   Ú	__class__s       €r   r   z!InsufficientBalanceError.__init__   s   ø€ Ü‰Ñ˜Ô!Ø"ˆŒØ"ˆ�r   )NN)r   r   r	   r
   ÚstrÚfloatr   Ú__classcell__©r   s   @r   r   r      s0   ø„ ÙFñ# ð #°¸±ð #ÐPUÐX\ÑP\÷ #ñ #r   r   c                   ó4   ‡ — e Zd ZdZddededz  fˆ fd„Zˆ xZS )ÚInvalidPointTypeErrorzARaised when the specified point type does not exist for the user.Nr   Ú
point_typec                 ó2   •— t         ‰| �  |«       || _        y r   )r   r   r   )r   r   r   r   s      €r   r   zInvalidPointTypeError.__init__   s   ø€ Ü‰Ñ˜Ô!Ø$ˆ�r   r   ©r   r   r	   r
   r   r   r   r   s   @r   r   r      s"   ø„ ÙKñ% ð %°°t±÷ %ñ %r   r   c                   ó4   ‡ — e Zd ZdZddededz  fˆ fd„Zˆ xZS )ÚInvalidParamsErrorz#Raised when parameters are invalid.Nr   Úmethodc                 ó2   •— t         ‰| �  |«       || _        y r   )r   r   r$   )r   r   r$   r   s      €r   r   zInvalidParamsError.__init__!   s   ø€ Ü‰Ñ˜Ô!Øˆ�r   r   r!   r   s   @r   r#   r#      s"   ø„ Ù-ñ ð ¨S°4©Z÷ ñ r   r#   c                   ó4   ‡ — e Zd ZdZddededz  fˆ fd„Zˆ xZS )ÚUserNotFoundErrorz.Raised when the specified user does not exist.Nr   Úuser_idc                 ó2   •— t         ‰| �  |«       || _        y r   )r   r   r(   )r   r   r(   r   s      €r   r   zUserNotFoundError.__init__)   s   ø€ Ü‰Ñ˜Ô!Øˆ�r   r   )r   r   r	   r
   r   Úintr   r   r   s   @r   r'   r'   &   s"   ø„ Ù8ñ ð ¨c°D©j÷ ñ r   r'   )r   r   r   r#   r'   r   r   N)r
   Údjango_package_hooksr   r   Ú	Exceptionr   r   r   r#   r'   Ú__all__r   r   r   Ú<module>r.      sU   ðÙ .÷ Hô	˜9ô 	ô#Ð3ô #ô%Ð0ô %ôÐ-ô ôÐ,ô ò�r   