B
    |b+              @   @   s  d Z G dd deZG dd de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eZ	G dd dee
ZG dd dee
ZG dd de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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eZG d'd( d(eeZG d)d* d*eeZG d+d, d,eeZG d-d. d.eeZG d/d0 d0eeZG d1d2 d2eeZ G d3d4 d4eeZ!G d5d6 d6eeZ"G d7d8 d8eeZ#G d9d: d:eeZ$G d;d< d<eeZ%G d=d> d>eeZ&G d?d@ d@eeZ'G dAdB dBeeZ(G dCdD dDeZ)G dEdF dFeZ*G dGdH dHeZ+G dIdJ dJeZ,G dKdL dLeZ-G dMdN dNeZ.G dOdP dPeZ/G dQdR dReZ0G dSdT dTeZ1G dUdV dVeZ2G dWdX dXeZ3G dYdZ dZeZ4G d[d\ d\eZ5G d]d^ d^eZ6G d_d` d`eZ7G dadb dbeZ8G dcdd ddeZ9G dedf dfeZ:G dgdh dheZ;G didj djeZ<G dkdl dleZ=G dmdn dneZ>G dodp dpeZ?G dqdr dreZ@G dsdt dteZAG dudv dveZBG dwdx dxeZCG dydz dzeZDG d{d| d|eZEG d}d~ d~eZFG dd deZGG dd deZHG dd deZIG dd deZJG dd deZKG dd deZLeeeeeee e#e&e)e,e/e2e5e8e;e>eAeDeGeJeeeeeee!e$e'e*e-e0e3e6e9e<e?eBeEeHeKeeeeeee"e%e(e+e.e1e4e7e:e=e@eCeFeIeLd?ZMdS )a5  :mod:`wand.exceptions` --- Errors and warnings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This module maps MagickWand API's errors and warnings to Python's native
exceptions and warnings. You can catch all MagickWand errors using Python's
natural way to catch errors.

.. seealso::

   `ImageMagick Exceptions <http://www.imagemagick.org/script/exception.php>`_

.. versionadded:: 0.1.1

.. versionchanged:: 0.5.8
   Warning & Error Exceptions are now explicitly defined. Previously
   ImageMagick domain-based errors were dynamically generated at runtime.
c               @   s   e Zd ZdZdS )WandExceptionz8All Wand-related exceptions are derived from this class.N)__name__
__module____qualname____doc__ r   r   R/home/ankuromar296_gmail_com/.local/lib/python3.7/site-packages/wand/exceptions.pyr      s   r   c               @   s   e Zd ZdZdS )BaseWarningzHBase class for Wand-related warnings.

    .. versionadded:: 0.4.4

    N)r   r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdS )	BaseErrorzFBase class for Wand-related errors.

    .. versionadded:: 0.4.4

    N)r   r   r   r   r   r   r   r   r	       s   r	   c               @   s   e Zd ZdZdS )BaseFatalErrorzLBase class for Wand-related fatal errors.

    .. versionadded:: 0.4.4

    N)r   r   r   r   r   r   r   r   r
   (   s   r
   c               @   s   e Zd ZdZdS )WandLibraryVersionErrorzZBase class for Wand-related ImageMagick version errors.

    .. versionadded:: 0.3.2

    N)r   r   r   r   r   r   r   r   r   0   s   r   c               @   s   e Zd ZdZdS )WandRuntimeErrorzPGeneric class for Wand-related runtime errors.

    .. versionadded:: 0.5.2
    N)r   r   r   r   r   r   r   r   r   8   s   r   c               @   s   e Zd ZdZdZdS )ResourceLimitWarningz7A program resource is exhausted e.g. not enough memory.i,  N)r   r   r   r   wand_error_coder   r   r   r   r   ?   s   r   c               @   s   e Zd ZdZdZdS )ResourceLimitErrorz7A program resource is exhausted e.g. not enough memory.i  N)r   r   r   r   r   r   r   r   r   r   D   s   r   c               @   s   e Zd ZdZdZdS )ResourceLimitFatalErrorz7A program resource is exhausted e.g. not enough memory.i  N)r   r   r   r   r   r   r   r   r   r   I   s   r   c               @   s   e Zd ZdZdZdS )TypeWarningz8A font is unavailable; a substitution may have occurred.i1  N)r   r   r   r   r   r   r   r   r   r   N   s   r   c               @   s   e Zd ZdZdZdS )	TypeErrorz8A font is unavailable; a substitution may have occurred.i  N)r   r   r   r   r   r   r   r   r   r   S   s   r   c               @   s   e Zd ZdZdZdS )TypeFatalErrorz8A font is unavailable; a substitution may have occurred.i  N)r   r   r   r   r   r   r   r   r   r   X   s   r   c               @   s   e Zd ZdZdZdS )OptionWarningz$A command-line option was malformed.i6  N)r   r   r   r   r   r   r   r   r   r   ]   s   r   c               @   s   e Zd ZdZdZdS )OptionErrorz$A command-line option was malformed.i  N)r   r   r   r   r   r   r   r   r   r   b   s   r   c               @   s   e Zd ZdZdZdS )OptionFatalErrorz$A command-line option was malformed.i  N)r   r   r   r   r   r   r   r   r   r   g   s   r   c               @   s   e Zd ZdZdZdS )DelegateWarningz+An ImageMagick delegate failed to complete.i;  N)r   r   r   r   r   r   r   r   r   r   l   s   r   c               @   s   e Zd ZdZdZdS )DelegateErrorz+An ImageMagick delegate failed to complete.i  N)r   r   r   r   r   r   r   r   r   r   q   s   r   c               @   s   e Zd ZdZdZdS )DelegateFatalErrorz+An ImageMagick delegate failed to complete.i  N)r   r   r   r   r   r   r   r   r   r   v   s   r   c               @   s   e Zd ZdZdZdS )MissingDelegateWarningz^The image type can not be read or written because the appropriate;
       delegate is missing.i@  N)r   r   r   r   r   r   r   r   r   r   {   s   r   c               @   s   e Zd ZdZdZdS )MissingDelegateErrorz^The image type can not be read or written because the appropriate;
       delegate is missing.i  N)r   r   r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdZdS )MissingDelegateFatalErrorz^The image type can not be read or written because the appropriate;
       delegate is missing.i  N)r   r   r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdZdS )CorruptImageWarningzThe image file may be corrupt.iE  N)r   r   r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdZdS )CorruptImageErrorzThe image file may be corrupt.i  N)r   r   r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdZdS )CorruptImageFatalErrorzThe image file may be corrupt.i  N)r   r   r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdZdS )FileOpenWarningz:The image file could not be opened for reading or writing.iJ  N)r   r   r   r   r   r   r   r   r   r       s   r    c               @   s   e Zd ZdZdZdS )FileOpenErrorz:The image file could not be opened for reading or writing.i  N)r   r   r   r   r   r   r   r   r   r!      s   r!   c               @   s   e Zd ZdZdZdS )FileOpenFatalErrorz:The image file could not be opened for reading or writing.i  N)r   r   r   r   r   r   r   r   r   r"      s   r"   c               @   s   e Zd ZdZdZdS )BlobWarningz?A binary large object could not be allocated, read, or written.iO  N)r   r   r   r   r   r   r   r   r   r#      s   r#   c               @   s   e Zd ZdZdZdS )	BlobErrorz?A binary large object could not be allocated, read, or written.i  N)r   r   r   r   r   r   r   r   r   r$      s   r$   c               @   s   e Zd ZdZdZdS )BlobFatalErrorz?A binary large object could not be allocated, read, or written.i  N)r   r   r   r   r   r   r   r   r   r%      s   r%   c               @   s   e Zd ZdZdZdS )StreamWarningz5There was a problem reading or writing from a stream.iT  N)r   r   r   r   r   r   r   r   r   r&      s   r&   c               @   s   e Zd ZdZdZdS )StreamErrorz5There was a problem reading or writing from a stream.i  N)r   r   r   r   r   r   r   r   r   r'      s   r'   c               @   s   e Zd ZdZdZdS )StreamFatalErrorz5There was a problem reading or writing from a stream.i  N)r   r   r   r   r   r   r   r   r   r(      s   r(   c               @   s   e Zd ZdZdZdS )CacheWarningz7Pixels could not be read or written to the pixel cache.iY  N)r   r   r   r   r   r   r   r   r   r)      s   r)   c               @   s   e Zd ZdZdZdS )
CacheErrorz7Pixels could not be read or written to the pixel cache.i  N)r   r   r   r   r   r   r   r   r   r*      s   r*   c               @   s   e Zd ZdZdZdS )CacheFatalErrorz7Pixels could not be read or written to the pixel cache.i  N)r   r   r   r   r   r   r   r   r   r+      s   r+   c               @   s   e Zd ZdZdZdS )CoderWarningz(There was a problem with an image coder.i^  N)r   r   r   r   r   r   r   r   r   r,      s   r,   c               @   s   e Zd ZdZdZdS )
CoderErrorz(There was a problem with an image coder.i  N)r   r   r   r   r   r   r   r   r   r-      s   r-   c               @   s   e Zd ZdZdZdS )CoderFatalErrorz(There was a problem with an image coder.i  N)r   r   r   r   r   r   r   r   r   r.      s   r.   c               @   s   e Zd ZdZdZdS )ModuleWarningz)There was a problem with an image module.ic  N)r   r   r   r   r   r   r   r   r   r/      s   r/   c               @   s   e Zd ZdZdZdS )ModuleErrorz)There was a problem with an image module.i  N)r   r   r   r   r   r   r   r   r   r0      s   r0   c               @   s   e Zd ZdZdZdS )ModuleFatalErrorz)There was a problem with an image module.i  N)r   r   r   r   r   r   r   r   r   r1      s   r1   c               @   s   e Zd ZdZdZdS )DrawWarningzA drawing operation failed.ih  N)r   r   r   r   r   r   r   r   r   r2      s   r2   c               @   s   e Zd ZdZdZdS )	DrawErrorzA drawing operation failed.i  N)r   r   r   r   r   r   r   r   r   r3      s   r3   c               @   s   e Zd ZdZdZdS )DrawFatalErrorzA drawing operation failed.i  N)r   r   r   r   r   r   r   r   r   r4      s   r4   c               @   s   e Zd ZdZdZdS )ImageWarningz>The operation could not complete due to an incompatible image.im  N)r   r   r   r   r   r   r   r   r   r5     s   r5   c               @   s   e Zd ZdZdZdS )
ImageErrorz>The operation could not complete due to an incompatible image.i  N)r   r   r   r   r   r   r   r   r   r6   
  s   r6   c               @   s   e Zd ZdZdZdS )ImageFatalErrorz>The operation could not complete due to an incompatible image.i  N)r   r   r   r   r   r   r   r   r   r7     s   r7   c               @   s   e Zd ZdZdZdS )WandWarningz3There was a problem specific to the MagickWand API.ir  N)r   r   r   r   r   r   r   r   r   r8     s   r8   c               @   s   e Zd ZdZdZdS )	WandErrorz3There was a problem specific to the MagickWand API.i  N)r   r   r   r   r   r   r   r   r   r9     s   r9   c               @   s   e Zd ZdZdZdS )WandFatalErrorz3There was a problem specific to the MagickWand API.i  N)r   r   r   r   r   r   r   r   r   r:     s   r:   c               @   s   e Zd ZdZdZdS )RandomWarningz=There is a problem generating a true or pseudo-random number.iw  N)r   r   r   r   r   r   r   r   r   r;   #  s   r;   c               @   s   e Zd ZdZdZdS )RandomErrorz=There is a problem generating a true or pseudo-random number.i  N)r   r   r   r   r   r   r   r   r   r<   (  s   r<   c               @   s   e Zd ZdZdZdS )RandomFatalErrorz=There is a problem generating a true or pseudo-random number.i  N)r   r   r   r   r   r   r   r   r   r=   -  s   r=   c               @   s   e Zd ZdZdZdS )XServerWarningzAn X resource is unavailable.i|  N)r   r   r   r   r   r   r   r   r   r>   2  s   r>   c               @   s   e Zd ZdZdZdS )XServerErrorzAn X resource is unavailable.i  N)r   r   r   r   r   r   r   r   r   r?   7  s   r?   c               @   s   e Zd ZdZdZdS )XServerFatalErrorzAn X resource is unavailable.i  N)r   r   r   r   r   r   r   r   r   r@   <  s   r@   c               @   s   e Zd ZdZdZdS )MonitorWarningz4There was a problem activating the progress monitor.i  N)r   r   r   r   r   r   r   r   r   rA   A  s   rA   c               @   s   e Zd ZdZdZdS )MonitorErrorz4There was a problem activating the progress monitor.i  N)r   r   r   r   r   r   r   r   r   rB   F  s   rB   c               @   s   e Zd ZdZdZdS )MonitorFatalErrorz4There was a problem activating the progress monitor.i  N)r   r   r   r   r   r   r   r   r   rC   K  s   rC   c               @   s   e Zd ZdZdZdS )RegistryWarningz4There was a problem getting or setting the registry.i  N)r   r   r   r   r   r   r   r   r   rD   P  s   rD   c               @   s   e Zd ZdZdZdS )RegistryErrorz4There was a problem getting or setting the registry.i  N)r   r   r   r   r   r   r   r   r   rE   U  s   rE   c               @   s   e Zd ZdZdZdS )RegistryFatalErrorz4There was a problem getting or setting the registry.i  N)r   r   r   r   r   r   r   r   r   rF   Z  s   rF   c               @   s   e Zd ZdZdZdS )ConfigureWarningz1There was a problem getting a configuration file.i  N)r   r   r   r   r   r   r   r   r   rG   _  s   rG   c               @   s   e Zd ZdZdZdS )ConfigureErrorz1There was a problem getting a configuration file.i  N)r   r   r   r   r   r   r   r   r   rH   d  s   rH   c               @   s   e Zd ZdZdZdS )ConfigureFatalErrorz1There was a problem getting a configuration file.i  N)r   r   r   r   r   r   r   r   r   rI   i  s   rI   c               @   s   e Zd ZdZdZdS )PolicyWarningzNA policy denies access to a delegate, coder, filter, path, or
       resource.i  N)r   r   r   r   r   r   r   r   r   rJ   n  s   rJ   c               @   s   e Zd ZdZdZdS )PolicyErrorzNA policy denies access to a delegate, coder, filter, path, or
       resource.i  N)r   r   r   r   r   r   r   r   r   rK   t  s   rK   c               @   s   e Zd ZdZdZdS )PolicyFatalErrorzNA policy denies access to a delegate, coder, filter, path, or
       resource.i  N)r   r   r   r   r   r   r   r   r   rL   z  s   rL   )?i,  i1  i6  i;  i@  iE  iJ  iO  iT  iY  i^  ic  ih  im  ir  iw  i|  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  i  N)Nr   	Exceptionr   Warningr   r	   r
   r   RuntimeErrorr   MemoryErrorr   r   r   r   r   r   r   r   r   r   r   r   ImportErrorr   r   r   
ValueErrorr   r   r   IOErrorr    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   TYPE_MAPr   r   r   r   <module>   s  