o
    oÇh©  ã                   @   sX   d Z G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG d	d
„ d
eƒZdS )z+ Common Exceptions for `holonomic` module. c                   @   s   e Zd Zdd„ ZdS )ÚBaseHolonomicErrorc                 G   s   t dƒ‚)Nzabstract base class)ÚNotImplementedError)ÚselfÚargs© r   ús/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/sympy/holonomic/holonomicerrors.pyÚnew   s   zBaseHolonomicError.newN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s    r   c                   @   ó   e Zd Zdd„ Zdd„ ZdS )ÚNotPowerSeriesErrorc                 C   ó   || _ || _d S ©N©Ú	holonomicÚx0©r   r   r   r   r   r   Ú__init__
   ó   
zNotPowerSeriesError.__init__c                 C   ó$   d}|t | jƒ7 }|d| j 7 }|S )Nz#A Power Series does not exists for z
 about %s.©Ústrr   r   ©r   Úsr   r   r   Ú__str__   ó   zNotPowerSeriesError.__str__N©r   r	   r
   r   r   r   r   r   r   r      ó    r   c                   @   r   )ÚNotHolonomicErrorc                 C   s
   || _ d S r   ©Úm)r   r    r   r   r   r      s   
zNotHolonomicError.__init__c                 C   s   | j S r   r   )r   r   r   r   r      s   zNotHolonomicError.__str__Nr   r   r   r   r   r      s    r   c                   @   r   )ÚSingularityErrorc                 C   r   r   r   r   r   r   r   r      r   zSingularityError.__init__c                 C   s   t | jƒ}|d| j 7 }|S )Nz has a singularity at %s.r   r   r   r   r   r   "   s   
zSingularityError.__str__Nr   r   r   r   r   r!      r   r!   c                   @   r   )ÚNotHyperSeriesErrorc                 C   r   r   r   r   r   r   r   r   )   r   zNotHyperSeriesError.__init__c                 C   r   )NzPower series expansion of z about %s is not hypergeometricr   r   r   r   r   r   -   r   zNotHyperSeriesError.__str__Nr   r   r   r   r   r"   '   r   r"   N)Ú__doc__Ú	Exceptionr   r   r   r!   r"   r   r   r   r   Ú<module>   s    