
    |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# # #PUX\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"    - S4Z  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 cDj  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   