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.
-
exception
wand.exceptions.BaseError Bases:
wand.exceptions.WandExceptionBase class for Wand-related errors.
New in version 0.4.4.
-
exception
wand.exceptions.BaseFatalError Bases:
wand.exceptions.WandExceptionBase class for Wand-related fatal errors.
New in version 0.4.4.
-
exception
wand.exceptions.BaseWarning Bases:
wand.exceptions.WandException,exceptions.WarningBase class for Wand-related warnings.
New in version 0.4.4.
-
exception
wand.exceptions.BlobError Bases:
wand.exceptions.BaseError,exceptions.IOErrorA binary large object could not be allocated, read, or written.
-
exception
wand.exceptions.BlobFatalError Bases:
wand.exceptions.BaseFatalError,exceptions.IOErrorA binary large object could not be allocated, read, or written.
-
exception
wand.exceptions.BlobWarning Bases:
wand.exceptions.BaseWarning,exceptions.IOErrorA binary large object could not be allocated, read, or written.
-
wand.exceptions.CODE_MAP= [(<class 'wand.exceptions.BaseWarning'>, 'Warning'), (<class 'wand.exceptions.BaseError'>, 'Error'), (<class 'wand.exceptions.BaseFatalError'>, 'FatalError')] (
list) The list of (base_class, suffix) pairs (for each code). It would be zipped withDOMAIN_MAPpairs’ last element.
-
exception
wand.exceptions.CacheError Bases:
wand.exceptions.BaseErrorPixels could not be read or written to the pixel cache.
-
exception
wand.exceptions.CacheFatalError Bases:
wand.exceptions.BaseFatalErrorPixels could not be read or written to the pixel cache.
-
exception
wand.exceptions.CacheWarning Bases:
wand.exceptions.BaseWarningPixels could not be read or written to the pixel cache.
-
exception
wand.exceptions.CoderError Bases:
wand.exceptions.BaseErrorThere was a problem with an image coder.
-
exception
wand.exceptions.CoderFatalError Bases:
wand.exceptions.BaseFatalErrorThere was a problem with an image coder.
-
exception
wand.exceptions.CoderWarning Bases:
wand.exceptions.BaseWarningThere was a problem with an image coder.
-
exception
wand.exceptions.ConfigureError Bases:
wand.exceptions.BaseErrorThere was a problem getting a configuration file.
-
exception
wand.exceptions.ConfigureFatalError Bases:
wand.exceptions.BaseFatalErrorThere was a problem getting a configuration file.
-
exception
wand.exceptions.ConfigureWarning Bases:
wand.exceptions.BaseWarningThere was a problem getting a configuration file.
-
exception
wand.exceptions.CorruptImageError Bases:
wand.exceptions.BaseError,exceptions.ValueErrorThe image file may be corrupt.
-
exception
wand.exceptions.CorruptImageFatalError Bases:
wand.exceptions.BaseFatalError,exceptions.ValueErrorThe image file may be corrupt.
-
exception
wand.exceptions.CorruptImageWarning Bases:
wand.exceptions.BaseWarning,exceptions.ValueErrorThe image file may be corrupt.
-
wand.exceptions.DOMAIN_MAP= [('ResourceLimit', 'A program resource is exhausted e.g. not enough memory.', (<type 'exceptions.MemoryError'>,), [300, 400, 700]), ('Type', 'A font is unavailable; a substitution may have occurred.', (), [305, 405, 705]), ('Option', 'A command-line option was malformed.', (), [310, 410, 710]), ('Delegate', 'An ImageMagick delegate failed to complete.', (), [315, 415, 715]), ('MissingDelegate', 'The image type can not be read or written because the appropriate; delegate is missing.', (<type 'exceptions.ImportError'>,), [320, 420, 720]), ('CorruptImage', 'The image file may be corrupt.', (<type 'exceptions.ValueError'>,), [325, 425, 725]), ('FileOpen', 'The image file could not be opened for reading or writing.', (<type 'exceptions.IOError'>,), [330, 430, 730]), ('Blob', 'A binary large object could not be allocated, read, or written.', (<type 'exceptions.IOError'>,), [335, 435, 735]), ('Stream', 'There was a problem reading or writing from a stream.', (<type 'exceptions.IOError'>,), [340, 440, 740]), ('Cache', 'Pixels could not be read or written to the pixel cache.', (), [345, 445, 745]), ('Coder', 'There was a problem with an image coder.', (), [350, 450, 750]), ('Module', 'There was a problem with an image module.', (), [355, 455, 755]), ('Draw', 'A drawing operation failed.', (), [360, 460, 760]), ('Image', 'The operation could not complete due to an incompatible image.', (), [365, 465, 765]), ('Wand', 'There was a problem specific to the MagickWand API.', (), [370, 470, 770]), ('Random', 'There is a problem generating a true or pseudo-random number.', (), [375, 475, 775]), ('XServer', 'An X resource is unavailable.', (), [380, 480, 780]), ('Monitor', 'There was a problem activating the progress monitor.', (), [385, 485, 785]), ('Registry', 'There was a problem getting or setting the registry.', (), [390, 490, 790]), ('Configure', 'There was a problem getting a configuration file.', (), [395, 495, 795]), ('Policy', 'A policy denies access to a delegate, coder, filter, path, or resource.', (), [399, 499, 799])] (
list) A list of error/warning domains, these descriptions and codes. The form of elements is like: (domain name, description, codes).
-
exception
wand.exceptions.DelegateError Bases:
wand.exceptions.BaseErrorAn ImageMagick delegate failed to complete.
-
exception
wand.exceptions.DelegateFatalError Bases:
wand.exceptions.BaseFatalErrorAn ImageMagick delegate failed to complete.
-
exception
wand.exceptions.DelegateWarning Bases:
wand.exceptions.BaseWarningAn ImageMagick delegate failed to complete.
-
exception
wand.exceptions.DrawError Bases:
wand.exceptions.BaseErrorA drawing operation failed.
-
exception
wand.exceptions.DrawFatalError Bases:
wand.exceptions.BaseFatalErrorA drawing operation failed.
-
exception
wand.exceptions.DrawWarning Bases:
wand.exceptions.BaseWarningA drawing operation failed.
-
exception
wand.exceptions.FileOpenError Bases:
wand.exceptions.BaseError,exceptions.IOErrorThe image file could not be opened for reading or writing.
-
exception
wand.exceptions.FileOpenFatalError Bases:
wand.exceptions.BaseFatalError,exceptions.IOErrorThe image file could not be opened for reading or writing.
-
exception
wand.exceptions.FileOpenWarning Bases:
wand.exceptions.BaseWarning,exceptions.IOErrorThe image file could not be opened for reading or writing.
-
exception
wand.exceptions.ImageError Bases:
wand.exceptions.BaseErrorThe operation could not complete due to an incompatible image.
-
exception
wand.exceptions.ImageFatalError Bases:
wand.exceptions.BaseFatalErrorThe operation could not complete due to an incompatible image.
-
exception
wand.exceptions.ImageWarning Bases:
wand.exceptions.BaseWarningThe operation could not complete due to an incompatible image.
-
exception
wand.exceptions.MissingDelegateError Bases:
wand.exceptions.BaseError,exceptions.ImportErrorThe image type can not be read or written because the appropriate; delegate is missing.
-
exception
wand.exceptions.MissingDelegateFatalError Bases:
wand.exceptions.BaseFatalError,exceptions.ImportErrorThe image type can not be read or written because the appropriate; delegate is missing.
-
exception
wand.exceptions.MissingDelegateWarning Bases:
wand.exceptions.BaseWarning,exceptions.ImportErrorThe image type can not be read or written because the appropriate; delegate is missing.
-
exception
wand.exceptions.ModuleError Bases:
wand.exceptions.BaseErrorThere was a problem with an image module.
-
exception
wand.exceptions.ModuleFatalError Bases:
wand.exceptions.BaseFatalErrorThere was a problem with an image module.
-
exception
wand.exceptions.ModuleWarning Bases:
wand.exceptions.BaseWarningThere was a problem with an image module.
-
exception
wand.exceptions.MonitorError Bases:
wand.exceptions.BaseErrorThere was a problem activating the progress monitor.
-
exception
wand.exceptions.MonitorFatalError Bases:
wand.exceptions.BaseFatalErrorThere was a problem activating the progress monitor.
-
exception
wand.exceptions.MonitorWarning Bases:
wand.exceptions.BaseWarningThere was a problem activating the progress monitor.
-
exception
wand.exceptions.OptionError Bases:
wand.exceptions.BaseErrorA command-line option was malformed.
-
exception
wand.exceptions.OptionFatalError Bases:
wand.exceptions.BaseFatalErrorA command-line option was malformed.
-
exception
wand.exceptions.OptionWarning Bases:
wand.exceptions.BaseWarningA command-line option was malformed.
-
exception
wand.exceptions.PolicyError Bases:
wand.exceptions.BaseErrorA policy denies access to a delegate, coder, filter, path, or resource.
-
exception
wand.exceptions.PolicyFatalError Bases:
wand.exceptions.BaseFatalErrorA policy denies access to a delegate, coder, filter, path, or resource.
-
exception
wand.exceptions.PolicyWarning Bases:
wand.exceptions.BaseWarningA policy denies access to a delegate, coder, filter, path, or resource.
-
exception
wand.exceptions.RandomError Bases:
wand.exceptions.BaseErrorThere is a problem generating a true or pseudo-random number.
-
exception
wand.exceptions.RandomFatalError Bases:
wand.exceptions.BaseFatalErrorThere is a problem generating a true or pseudo-random number.
-
exception
wand.exceptions.RandomWarning Bases:
wand.exceptions.BaseWarningThere is a problem generating a true or pseudo-random number.
-
exception
wand.exceptions.RegistryError Bases:
wand.exceptions.BaseErrorThere was a problem getting or setting the registry.
-
exception
wand.exceptions.RegistryFatalError Bases:
wand.exceptions.BaseFatalErrorThere was a problem getting or setting the registry.
-
exception
wand.exceptions.RegistryWarning Bases:
wand.exceptions.BaseWarningThere was a problem getting or setting the registry.
-
exception
wand.exceptions.ResourceLimitError Bases:
wand.exceptions.BaseError,exceptions.MemoryErrorA program resource is exhausted e.g. not enough memory.
-
exception
wand.exceptions.ResourceLimitFatalError Bases:
wand.exceptions.BaseFatalError,exceptions.MemoryErrorA program resource is exhausted e.g. not enough memory.
-
exception
wand.exceptions.ResourceLimitWarning Bases:
wand.exceptions.BaseWarning,exceptions.MemoryErrorA program resource is exhausted e.g. not enough memory.
-
exception
wand.exceptions.StreamError Bases:
wand.exceptions.BaseError,exceptions.IOErrorThere was a problem reading or writing from a stream.
-
exception
wand.exceptions.StreamFatalError Bases:
wand.exceptions.BaseFatalError,exceptions.IOErrorThere was a problem reading or writing from a stream.
-
exception
wand.exceptions.StreamWarning Bases:
wand.exceptions.BaseWarning,exceptions.IOErrorThere was a problem reading or writing from a stream.
-
wand.exceptions.TYPE_MAP= {385: <class 'wand.exceptions.MonitorWarning'>, 770: <class 'wand.exceptions.WandFatalError'>, 390: <class 'wand.exceptions.RegistryWarning'>, 775: <class 'wand.exceptions.RandomFatalError'>, 395: <class 'wand.exceptions.ConfigureWarning'>, 780: <class 'wand.exceptions.XServerFatalError'>, 399: <class 'wand.exceptions.PolicyWarning'>, 400: <class 'wand.exceptions.ResourceLimitError'>, 785: <class 'wand.exceptions.MonitorFatalError'>, 405: <class 'wand.exceptions.TypeError'>, 790: <class 'wand.exceptions.RegistryFatalError'>, 410: <class 'wand.exceptions.OptionError'>, 795: <class 'wand.exceptions.ConfigureFatalError'>, 415: <class 'wand.exceptions.DelegateError'>, 420: <class 'wand.exceptions.MissingDelegateError'>, 499: <class 'wand.exceptions.PolicyError'>, 425: <class 'wand.exceptions.CorruptImageError'>, 300: <class 'wand.exceptions.ResourceLimitWarning'>, 430: <class 'wand.exceptions.FileOpenError'>, 305: <class 'wand.exceptions.TypeWarning'>, 435: <class 'wand.exceptions.BlobError'>, 310: <class 'wand.exceptions.OptionWarning'>, 440: <class 'wand.exceptions.StreamError'>, 315: <class 'wand.exceptions.DelegateWarning'>, 700: <class 'wand.exceptions.ResourceLimitFatalError'>, 445: <class 'wand.exceptions.CacheError'>, 320: <class 'wand.exceptions.MissingDelegateWarning'>, 705: <class 'wand.exceptions.TypeFatalError'>, 450: <class 'wand.exceptions.CoderError'>, 325: <class 'wand.exceptions.CorruptImageWarning'>, 710: <class 'wand.exceptions.OptionFatalError'>, 455: <class 'wand.exceptions.ModuleError'>, 330: <class 'wand.exceptions.FileOpenWarning'>, 715: <class 'wand.exceptions.DelegateFatalError'>, 460: <class 'wand.exceptions.DrawError'>, 335: <class 'wand.exceptions.BlobWarning'>, 720: <class 'wand.exceptions.MissingDelegateFatalError'>, 465: <class 'wand.exceptions.ImageError'>, 340: <class 'wand.exceptions.StreamWarning'>, 725: <class 'wand.exceptions.CorruptImageFatalError'>, 470: <class 'wand.exceptions.WandError'>, 345: <class 'wand.exceptions.CacheWarning'>, 730: <class 'wand.exceptions.FileOpenFatalError'>, 475: <class 'wand.exceptions.RandomError'>, 799: <class 'wand.exceptions.PolicyFatalError'>, 350: <class 'wand.exceptions.CoderWarning'>, 735: <class 'wand.exceptions.BlobFatalError'>, 480: <class 'wand.exceptions.XServerError'>, 355: <class 'wand.exceptions.ModuleWarning'>, 740: <class 'wand.exceptions.StreamFatalError'>, 485: <class 'wand.exceptions.MonitorError'>, 360: <class 'wand.exceptions.DrawWarning'>, 745: <class 'wand.exceptions.CacheFatalError'>, 490: <class 'wand.exceptions.RegistryError'>, 365: <class 'wand.exceptions.ImageWarning'>, 750: <class 'wand.exceptions.CoderFatalError'>, 495: <class 'wand.exceptions.ConfigureError'>, 370: <class 'wand.exceptions.WandWarning'>, 755: <class 'wand.exceptions.ModuleFatalError'>, 375: <class 'wand.exceptions.RandomWarning'>, 760: <class 'wand.exceptions.DrawFatalError'>, 380: <class 'wand.exceptions.XServerWarning'>, 765: <class 'wand.exceptions.ImageFatalError'>} (
dict) The dictionary of (code, exc_type).
-
exception
wand.exceptions.TypeError Bases:
wand.exceptions.BaseErrorA font is unavailable; a substitution may have occurred.
-
exception
wand.exceptions.TypeFatalError Bases:
wand.exceptions.BaseFatalErrorA font is unavailable; a substitution may have occurred.
-
exception
wand.exceptions.TypeWarning Bases:
wand.exceptions.BaseWarningA font is unavailable; a substitution may have occurred.
-
exception
wand.exceptions.WandError Bases:
wand.exceptions.BaseErrorThere was a problem specific to the MagickWand API.
-
exception
wand.exceptions.WandException Bases:
exceptions.ExceptionAll Wand-related exceptions are derived from this class.
-
exception
wand.exceptions.WandFatalError Bases:
wand.exceptions.BaseFatalErrorThere was a problem specific to the MagickWand API.
-
exception
wand.exceptions.WandLibraryVersionError Bases:
wand.exceptions.WandExceptionBase class for Wand-related ImageMagick version errors.
New in version 0.3.2.
-
exception
wand.exceptions.WandWarning Bases:
wand.exceptions.BaseWarningThere was a problem specific to the MagickWand API.
-
exception
wand.exceptions.XServerError Bases:
wand.exceptions.BaseErrorAn X resource is unavailable.
-
exception
wand.exceptions.XServerFatalError Bases:
wand.exceptions.BaseFatalErrorAn X resource is unavailable.
-
exception
wand.exceptions.XServerWarning Bases:
wand.exceptions.BaseWarningAn X resource is unavailable.