U
    ®[Öeì  ã                   @   s8   d Z G dd„ deƒZG dd„ deƒZG dd„ deƒZdS )zÄ
    pyexcel_io.exceptions
    ~~~~~~~~~~~~~~~~~~~~~~

    all possible exceptions

    :copyright: (c) 2014-2022 by Onni Software Ltd.
    :license: New BSD License, see LICENSE for more details
c                   @   s   e Zd ZdZdS )ÚNoSupportingPluginFoundz+raised when an known file extension is seenN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úW/var/www/html/services/stratfitenv/lib/python3.8/site-packages/pyexcel_io/exceptions.pyr      s   r   c                   @   s   e Zd ZdZdS )Ú(SupportingPluginAvailableButNotInstalledz+raised when a known plugin is not installedNr   r   r   r   r   r	      s   r	   c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚIntegerAccuracyLossErrora®  
    When an interger is greater than 999999999999999, ods loses its accuracy.

    from pyexcel import Sheet, get_sheet
    s = Sheet()
    s[0,0] = 999999999999999  # 15 '9's
    print(s)
    s.save_as('abc.ods')
    b=get_sheet(file_name='abc.ods')
    b[0,0] == s[0,0]

    s = Sheet()
    s[0,0] = 9999999999999999 # 16 '9's
    print(s)
    s.save_as('abc.ods')
    b=get_sheet(file_name='abc.ods')
    b[0,0] != s[0,0]
    c                    s$   |d d d }t t| ƒ |¡ d S )NÚ
z;In order to keep its accuracy, please save as string. Then z?convert to int, long or float after the value will be read back)Úsuperr
   Ú__init__)ÚselfÚmessageZcustom_message©Ú	__class__r   r   r   ,   s    ÿþýÿz!IntegerAccuracyLossError.__init__)r   r   r   r   r   Ú__classcell__r   r   r   r   r
      s   r
   N)r   Ú	Exceptionr   r	   r
   r   r   r   r   Ú<module>   s   