B
    ˜‘[Ú  ã               @   sh   d Z ddlmZm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. é    )Úprint_functionÚdivisionc               @   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   ú>lib/python3.7/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 )N)Úm)r   r   r   r   r	   r      s    zNotHolonomicError.__init__c             C   s   | j S )N)r   )r   r   r   r	   r      s    zNotHolonomicError.__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 )ÚSingularityErrorc             C   s   || _ || _d S )N)r   r   )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   r   r	   r   $   s    
zSingularityError.__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 )ÚNotHyperSeriesErrorc             C   s   || _ || _d S )N)r   r   )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 hypergeometric)r   r   r   )r   r   r   r   r	   r   /   s    zNotHyperSeriesError.__str__N)r   r   r   r   r   r   r   r   r	   r   )   s   r   N)
Ú__doc__Z
__future__r   r   Ú	Exceptionr   r   r   r   r   r   r   r   r	   Ú<module>   s   