U
    L?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d S )Nzabstract base class)NotImplementedError)selfargs r   Q/var/www/html/venv/lib/python3.8/site-packages/sympy/holonomic/holonomicerrors.pynew   s    zBaseHolonomicError.newN)__name__
__module____qualname__r   r   r   r   r   r      s   r   c                   @   s   e Zd Zdd Zdd ZdS )NotPowerSeriesErrorc                 C   s   || _ || _d S N	holonomicx0r   r   r   r   r   r   __init__
   s    zNotPowerSeriesError.__init__c                 C   s$   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__   s    zNotPowerSeriesError.__str__Nr   r	   r
   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd Zdd Zdd ZdS )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                   @   s   e Zd Zdd Zdd ZdS )SingularityErrorc                 C   s   || _ || _d S r   r   r   r   r   r   r      s    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      s   r   c                   @   s   e Zd Zdd Zdd ZdS )NotHyperSeriesErrorc                 C   s   || _ || _d S r   r   r   r   r   r   r   )   s    zNotHyperSeriesError.__init__c                 C   s$   d}|t | j7 }|d| j 7 }|S )NzPower series expansion of z about %s is not hypergeometricr   r   r   r   r   r   -   s    zNotHyperSeriesError.__str__Nr   r   r   r   r   r   '   s   r   N)__doc__	Exceptionr   r   r   r   r   r   r   r   r   <module>   s
   