Exceptions

NotSupportedError

rawpy.NotSupportedError is raised if a feature of LibRaw is used that was not enabled during the LibRaw library build, for example demosaic algorithms that are part of the GPL2/GPL3 packs.

class rawpy.NotSupportedError(self, message, min_version=None)

LibRawError

rawpy.LibRawError is the base type of rawpy.LibRawFatalError and rawpy.LibRawNonFatalError and can be used to catch any LibRaw errors.

class rawpy.LibRawError

LibRawFatalError

class rawpy.LibRawFatalError

The following error types are subtypes of rawpy.LibRawFatalError:

class rawpy.LibRawUnsufficientMemoryError
class rawpy.LibRawDataError
class rawpy.LibRawIOError
class rawpy.LibRawCancelledByCallbackError
class rawpy.LibRawBadCropError
class rawpy.LibRawTooBigError
class rawpy.LibRawMemPoolOverflowError

LibRawNonFatalError

class rawpy.LibRawNonFatalError

The following error types are subtypes of rawpy.LibRawNonFatalError:

class rawpy.LibRawUnspecifiedError
class rawpy.LibRawFileUnsupportedError
class rawpy.LibRawRequestForNonexistentImageError
class rawpy.LibRawOutOfOrderCallError
class rawpy.LibRawNoThumbnailError
class rawpy.LibRawUnsupportedThumbnailError
class rawpy.LibRawInputClosedError
class rawpy.LibRawNotImplementedError