o
    úM iR  ã                   @   sp   d dl 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G dd„ deƒZdS )é    )Úunicode_literalsc                   @   ó   e Zd ZdZdS )ÚMorfessorExceptionz)Base class for exceptions in this module.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r
   r
   úG/home/ubuntu/.local/lib/python3.10/site-packages/morfessor/exception.pyr      ó    r   c                   @   r   )ÚArgumentExceptionz+Exception in command line argument parsing.Nr   r
   r
   r
   r   r   	   r   r   c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚInvalidCategoryErrorz=Attempt to load data using a different categorization scheme.c                    ó   t t| ƒ | d |¡¡ d S )Nz-This model does not recognize the category {})Úsuperr   Ú__init__Úformat)ÚselfÚcategory©Ú	__class__r
   r   r      s
   
ÿÿzInvalidCategoryError.__init__)r   r   r   r	   r   Ú__classcell__r
   r
   r   r   r      s    r   c                       ó   e Zd Z‡ fdd„Z‡  ZS )ÚInvalidOperationErrorc                    s   t t| ƒ | d ||¡¡ d S )NzQThis model does not have a method {}, and therefore cannot perform operation "{}")r   r   r   r   )r   Ú	operationÚfunction_namer   r
   r   r      s   
þzInvalidOperationError.__init__©r   r   r   r   r   r
   r
   r   r   r      ó    r   c                       r   )ÚUnsupportedConfigurationErrorc                    r   )NzJThis operation is not supported in this program configuration. Reason: {}.)r   r   r   r   )r   Úreasonr   r
   r   r      s   
þz&UnsupportedConfigurationError.__init__r   r
   r
   r   r   r      r   r   c                       r   )ÚSegmentOnlyModelExceptionc                    s   t t| ƒ | d¡ d S )Nz3This model has been reduced to a segment-only model)r   r    r   )r   r   r
   r   r   %   s   
ÿz"SegmentOnlyModelException.__init__r   r
   r
   r   r   r    $   r   r    N)	Ú
__future__r   Ú	Exceptionr   r   r   r   r   r    r
   r
   r
   r   Ú<module>   s    