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.
See also
New in version 0.1.1.
Changed in version 0.5.8: Warning & Error Exceptions are now explicitly defined. Previously ImageMagick domain-based errors were dynamically generated at runtime.
- exception wand.exceptions.BaseError¶
Bases:
WandExceptionBase class for Wand-related errors.
New in version 0.4.4.
- exception wand.exceptions.BaseFatalError¶
Bases:
WandExceptionBase class for Wand-related fatal errors.
New in version 0.4.4.
- exception wand.exceptions.BaseWarning¶
Bases:
WandException,WarningBase class for Wand-related warnings.
New in version 0.4.4.
- exception wand.exceptions.BlobError¶
-
A binary large object could not be allocated, read, or written.
- exception wand.exceptions.BlobFatalError¶
Bases:
BaseFatalError,OSErrorA binary large object could not be allocated, read, or written.
- exception wand.exceptions.BlobWarning¶
Bases:
BaseWarning,OSErrorA binary large object could not be allocated, read, or written.
- exception wand.exceptions.CacheError¶
Bases:
BaseErrorPixels could not be read or written to the pixel cache.
- exception wand.exceptions.CacheFatalError¶
Bases:
BaseFatalErrorPixels could not be read or written to the pixel cache.
- exception wand.exceptions.CacheWarning¶
Bases:
BaseWarningPixels could not be read or written to the pixel cache.
- exception wand.exceptions.CoderFatalError¶
Bases:
BaseFatalErrorThere was a problem with an image coder.
- exception wand.exceptions.CoderWarning¶
Bases:
BaseWarningThere was a problem with an image coder.
- exception wand.exceptions.ConfigureError¶
Bases:
BaseErrorThere was a problem getting a configuration file.
- exception wand.exceptions.ConfigureFatalError¶
Bases:
BaseFatalErrorThere was a problem getting a configuration file.
- exception wand.exceptions.ConfigureWarning¶
Bases:
BaseWarningThere was a problem getting a configuration file.
- exception wand.exceptions.CorruptImageError¶
Bases:
BaseError,ValueErrorThe image file may be corrupt.
- exception wand.exceptions.CorruptImageFatalError¶
Bases:
BaseFatalError,ValueErrorThe image file may be corrupt.
- exception wand.exceptions.CorruptImageWarning¶
Bases:
BaseWarning,ValueErrorThe image file may be corrupt.
- exception wand.exceptions.DelegateError¶
Bases:
BaseErrorAn ImageMagick delegate failed to complete.
- exception wand.exceptions.DelegateFatalError¶
Bases:
BaseFatalErrorAn ImageMagick delegate failed to complete.
- exception wand.exceptions.DelegateWarning¶
Bases:
BaseWarningAn ImageMagick delegate failed to complete.
- exception wand.exceptions.DrawFatalError¶
Bases:
BaseFatalErrorA drawing operation failed.
- exception wand.exceptions.DrawWarning¶
Bases:
BaseWarningA drawing operation failed.
- exception wand.exceptions.FileOpenError¶
-
The image file could not be opened for reading or writing.
- exception wand.exceptions.FileOpenFatalError¶
Bases:
BaseFatalError,OSErrorThe image file could not be opened for reading or writing.
- exception wand.exceptions.FileOpenWarning¶
Bases:
BaseWarning,OSErrorThe image file could not be opened for reading or writing.
- exception wand.exceptions.ImageError¶
Bases:
BaseErrorThe operation could not complete due to an incompatible image.
- exception wand.exceptions.ImageFatalError¶
Bases:
BaseFatalErrorThe operation could not complete due to an incompatible image.
- exception wand.exceptions.ImageWarning¶
Bases:
BaseWarningThe operation could not complete due to an incompatible image.
- exception wand.exceptions.MissingDelegateError¶
Bases:
BaseError,ImportErrorThe image type can not be read or written because the appropriate; delegate is missing.
- exception wand.exceptions.MissingDelegateFatalError¶
Bases:
BaseFatalError,ImportErrorThe image type can not be read or written because the appropriate; delegate is missing.
- exception wand.exceptions.MissingDelegateWarning¶
Bases:
BaseWarning,ImportErrorThe image type can not be read or written because the appropriate; delegate is missing.
- exception wand.exceptions.ModuleFatalError¶
Bases:
BaseFatalErrorThere was a problem with an image module.
- exception wand.exceptions.ModuleWarning¶
Bases:
BaseWarningThere was a problem with an image module.
- exception wand.exceptions.MonitorError¶
Bases:
BaseErrorThere was a problem activating the progress monitor.
- exception wand.exceptions.MonitorFatalError¶
Bases:
BaseFatalErrorThere was a problem activating the progress monitor.
- exception wand.exceptions.MonitorWarning¶
Bases:
BaseWarningThere was a problem activating the progress monitor.
- exception wand.exceptions.OptionFatalError¶
Bases:
BaseFatalErrorA command-line option was malformed.
- exception wand.exceptions.OptionWarning¶
Bases:
BaseWarningA command-line option was malformed.
- exception wand.exceptions.PolicyError¶
Bases:
BaseErrorA policy denies access to a delegate, coder, filter, path, or resource.
- exception wand.exceptions.PolicyFatalError¶
Bases:
BaseFatalErrorA policy denies access to a delegate, coder, filter, path, or resource.
- exception wand.exceptions.PolicyWarning¶
Bases:
BaseWarningA policy denies access to a delegate, coder, filter, path, or resource.
- exception wand.exceptions.RandomError¶
Bases:
BaseErrorThere is a problem generating a true or pseudo-random number.
- exception wand.exceptions.RandomFatalError¶
Bases:
BaseFatalErrorThere is a problem generating a true or pseudo-random number.
- exception wand.exceptions.RandomWarning¶
Bases:
BaseWarningThere is a problem generating a true or pseudo-random number.
- exception wand.exceptions.RegistryError¶
Bases:
BaseErrorThere was a problem getting or setting the registry.
- exception wand.exceptions.RegistryFatalError¶
Bases:
BaseFatalErrorThere was a problem getting or setting the registry.
- exception wand.exceptions.RegistryWarning¶
Bases:
BaseWarningThere was a problem getting or setting the registry.
- exception wand.exceptions.ResourceLimitError¶
Bases:
BaseError,MemoryErrorA program resource is exhausted e.g. not enough memory.
- exception wand.exceptions.ResourceLimitFatalError¶
Bases:
BaseFatalError,MemoryErrorA program resource is exhausted e.g. not enough memory.
- exception wand.exceptions.ResourceLimitWarning¶
Bases:
BaseWarning,MemoryErrorA program resource is exhausted e.g. not enough memory.
- exception wand.exceptions.StreamError¶
-
There was a problem reading or writing from a stream.
- exception wand.exceptions.StreamFatalError¶
Bases:
BaseFatalError,OSErrorThere was a problem reading or writing from a stream.
- exception wand.exceptions.StreamWarning¶
Bases:
BaseWarning,OSErrorThere was a problem reading or writing from a stream.
- wand.exceptions.TYPE_MAP = {300: <class 'wand.exceptions.ResourceLimitWarning'>, 305: <class 'wand.exceptions.TypeWarning'>, 310: <class 'wand.exceptions.OptionWarning'>, 315: <class 'wand.exceptions.DelegateWarning'>, 320: <class 'wand.exceptions.MissingDelegateWarning'>, 325: <class 'wand.exceptions.CorruptImageWarning'>, 330: <class 'wand.exceptions.FileOpenWarning'>, 335: <class 'wand.exceptions.BlobWarning'>, 340: <class 'wand.exceptions.StreamWarning'>, 345: <class 'wand.exceptions.CacheWarning'>, 350: <class 'wand.exceptions.CoderWarning'>, 355: <class 'wand.exceptions.ModuleWarning'>, 360: <class 'wand.exceptions.DrawWarning'>, 365: <class 'wand.exceptions.ImageWarning'>, 370: <class 'wand.exceptions.WandWarning'>, 375: <class 'wand.exceptions.RandomWarning'>, 380: <class 'wand.exceptions.XServerWarning'>, 385: <class 'wand.exceptions.MonitorWarning'>, 390: <class 'wand.exceptions.RegistryWarning'>, 395: <class 'wand.exceptions.ConfigureWarning'>, 399: <class 'wand.exceptions.PolicyWarning'>, 400: <class 'wand.exceptions.ResourceLimitError'>, 405: <class 'wand.exceptions.TypeError'>, 410: <class 'wand.exceptions.OptionError'>, 415: <class 'wand.exceptions.DelegateError'>, 420: <class 'wand.exceptions.MissingDelegateError'>, 425: <class 'wand.exceptions.CorruptImageError'>, 430: <class 'wand.exceptions.FileOpenError'>, 435: <class 'wand.exceptions.BlobError'>, 440: <class 'wand.exceptions.StreamError'>, 445: <class 'wand.exceptions.CacheError'>, 450: <class 'wand.exceptions.CoderError'>, 455: <class 'wand.exceptions.ModuleError'>, 460: <class 'wand.exceptions.DrawError'>, 465: <class 'wand.exceptions.ImageError'>, 470: <class 'wand.exceptions.WandError'>, 475: <class 'wand.exceptions.RandomError'>, 480: <class 'wand.exceptions.XServerError'>, 485: <class 'wand.exceptions.MonitorError'>, 490: <class 'wand.exceptions.RegistryError'>, 495: <class 'wand.exceptions.ConfigureError'>, 499: <class 'wand.exceptions.PolicyError'>, 700: <class 'wand.exceptions.ResourceLimitFatalError'>, 705: <class 'wand.exceptions.TypeFatalError'>, 710: <class 'wand.exceptions.OptionFatalError'>, 715: <class 'wand.exceptions.DelegateFatalError'>, 720: <class 'wand.exceptions.MissingDelegateFatalError'>, 725: <class 'wand.exceptions.CorruptImageFatalError'>, 730: <class 'wand.exceptions.FileOpenFatalError'>, 735: <class 'wand.exceptions.BlobFatalError'>, 740: <class 'wand.exceptions.StreamFatalError'>, 745: <class 'wand.exceptions.CacheFatalError'>, 750: <class 'wand.exceptions.CoderFatalError'>, 755: <class 'wand.exceptions.ModuleFatalError'>, 760: <class 'wand.exceptions.DrawFatalError'>, 765: <class 'wand.exceptions.ImageFatalError'>, 770: <class 'wand.exceptions.WandFatalError'>, 775: <class 'wand.exceptions.RandomFatalError'>, 780: <class 'wand.exceptions.XServerFatalError'>, 785: <class 'wand.exceptions.MonitorFatalError'>, 790: <class 'wand.exceptions.RegistryFatalError'>, 795: <class 'wand.exceptions.ConfigureFatalError'>, 799: <class 'wand.exceptions.PolicyFatalError'>}¶
(
dict) The dictionary of (code, exc_type).
- exception wand.exceptions.TypeError¶
Bases:
BaseErrorA font is unavailable; a substitution may have occurred.
- exception wand.exceptions.TypeFatalError¶
Bases:
BaseFatalErrorA font is unavailable; a substitution may have occurred.
- exception wand.exceptions.TypeWarning¶
Bases:
BaseWarningA font is unavailable; a substitution may have occurred.
- exception wand.exceptions.WandError¶
Bases:
BaseErrorThere was a problem specific to the MagickWand API.
- exception wand.exceptions.WandException¶
Bases:
ExceptionAll Wand-related exceptions are derived from this class.
- exception wand.exceptions.WandFatalError¶
Bases:
BaseFatalErrorThere was a problem specific to the MagickWand API.
- exception wand.exceptions.WandLibraryVersionError¶
Bases:
WandExceptionBase class for Wand-related ImageMagick version errors.
New in version 0.3.2.
- exception wand.exceptions.WandRuntimeError¶
Bases:
WandException,RuntimeErrorGeneric class for Wand-related runtime errors.
New in version 0.5.2.
- exception wand.exceptions.WandWarning¶
Bases:
BaseWarningThere was a problem specific to the MagickWand API.
- exception wand.exceptions.XServerFatalError¶
Bases:
BaseFatalErrorAn X resource is unavailable.
- exception wand.exceptions.XServerWarning¶
Bases:
BaseWarningAn X resource is unavailable.