extract_msg.exceptions Module

Module contents

extract_msg.exceptions

This module contains the set of extract_msg exceptions.

exception extract_msg.exceptions.ExMsgBaseException[source]

Bases: Exception

The base class for all custom exceptions the module uses.

exception extract_msg.exceptions.ConversionError[source]

Bases: ExMsgBaseException

An error occured during type conversion.

exception extract_msg.exceptions.DataNotFoundError[source]

Bases: ExMsgBaseException

Requested stream type was unavailable.

exception extract_msg.exceptions.DeencapMalformedData[source]

Bases: ExMsgBaseException

Data to deencapsulate was malformed in some way.

exception extract_msg.exceptions.DeencapNotEncapsulated[source]

Bases: ExMsgBaseException

Data to deencapsulate did not contain any encapsulated data.

exception extract_msg.exceptions.ExecutableNotFound[source]

Bases: DependencyError

Could not find the specified executable.

exception extract_msg.exceptions.IncompatibleOptionsError[source]

Bases: ExMsgBaseException

Provided options are incompatible with each other.

exception extract_msg.exceptions.InvalidFileFormatError[source]

Bases: ExMsgBaseException

An Invalid File Format Error occurred.

exception extract_msg.exceptions.InvalidPropertyIdError[source]

Bases: ExMsgBaseException

The provided property ID was invalid.

exception extract_msg.exceptions.StandardViolationError[source]

Bases: InvalidFileFormatError

A critical violation of the MSG standards was detected and could not be recovered from.

Recoverable violations will result in log messages instead.

Any that could reasonably be skipped, although are likely to still cause errors down the line, can be suppressed.

exception extract_msg.exceptions.TZError[source]

Bases: ExMsgBaseException

Specifically not an OSError to avoid being caught by parts of the module.

This error represents a fatal error in the datetime parsing as it usually means your installation of tzlocal or tzdata are broken. If you have received this error after using PyInstaller, you must include the resource files for tzdata for it to work properly. See TeamMsgExtractor#272 and TeamMsgExtractor#169 for information on why you are getting this error.

exception extract_msg.exceptions.UnknownCodepageError[source]

Bases: ExMsgBaseException

The codepage provided was not one we know of.

exception extract_msg.exceptions.UnsupportedEncodingError[source]

Bases: FeatureNotImplemented

The codepage provided is known but is not supported.

exception extract_msg.exceptions.UnknownTypeError[source]

Bases: ExMsgBaseException

The type specified is not one that is recognized.

exception extract_msg.exceptions.UnsupportedMSGTypeError[source]

Bases: FeatureNotImplemented

An exception that is raised when an MSG class is recognized by not supported.

exception extract_msg.exceptions.UnrecognizedMSGTypeError[source]

Bases: ExMsgBaseException

An exception that is raised when the module cannot determine how to properly open a specific class of MSG file.

exception extract_msg.exceptions.WKError[source]

Bases: DependencyError

An error occured while running wkhtmltopdf.