module ex

exception ooodev.exceptions.ex.CancelEventError(event_args, message=None, *args)[source]

Error when an Event is canceled

Parameters:
  • event_args (EventArgsT) –

  • message (Any) –

Return type:

None

__init__(event_args, message=None, *args)[source]

Cancel Event Error constructor

Parameters:
  • event_args (EventArgsT) – Event args that was canceled

  • message (Any, optional) – Message of error

Return type:

None

exception ooodev.exceptions.ex.CellDeletedError[source]

Error when cell is deleted

exception ooodev.exceptions.ex.CellError[source]

Cell error

exception ooodev.exceptions.ex.ChartError[source]

Generic Chart Error

exception ooodev.exceptions.ex.ChartExistingError[source]

Chart already exist Error

exception ooodev.exceptions.ex.ChartNoAccessError[source]

No Access to Chart

exception ooodev.exceptions.ex.ChartNotExistingError[source]

Chart does not exist

exception ooodev.exceptions.ex.ColorError[source]

Generic Color Error

exception ooodev.exceptions.ex.ConfigError[source]

Config Error

exception ooodev.exceptions.ex.ConnectionError[source]

Generic Connection Error

Changed in version 0.9.8.

exception ooodev.exceptions.ex.ConvertError[source]

Generic error when an error occurs while converting.

New in version 0.35.0.

exception ooodev.exceptions.ex.ConvertPathError[source]

Path Conversion Error

exception ooodev.exceptions.ex.CreateInstanceError(interface, service, message=None, *args)[source]

Create instance Error

Parameters:
  • interface (Any) –

  • service (str) –

  • message (Any) –

Return type:

None

__init__(interface, service, message=None, *args)[source]

constructor

Parameters:
  • interface (Any) – Interface that failed creation

  • message (Any, optional) – Message of error

  • service (str) –

Return type:

None

exception ooodev.exceptions.ex.CreateInstanceMcfError(interface, service, message=None, *args)[source]

Create MCF Instance Error

Parameters:
  • interface (Any) –

  • service (str) –

  • message (Any) –

Return type:

None

exception ooodev.exceptions.ex.CreateInstanceMsfError(interface, service, message=None, *args)[source]

Create MSF Instance Error

Parameters:
  • interface (Any) –

  • service (str) –

  • message (Any) –

Return type:

None

exception ooodev.exceptions.ex.CursorError[source]

Handles Cursor errors

exception ooodev.exceptions.ex.DeletedAttributeError[source]

Generic error raise when attribute has been deleted.

exception ooodev.exceptions.ex.DiagramError[source]

Generic Diagram Error

exception ooodev.exceptions.ex.DiagramNotExistingError[source]

Diagram does not exist Error

exception ooodev.exceptions.ex.DialogError[source]

Generic Dialog Error

exception ooodev.exceptions.ex.DisabledMethodError[source]

Generic error raise when method has been disabled.

exception ooodev.exceptions.ex.DispatchError[source]

Generic error when an error occurs while dispatching

exception ooodev.exceptions.ex.DrawError[source]

Generic Draw Error

exception ooodev.exceptions.ex.DrawPageError[source]

Generic Draw Page Error

exception ooodev.exceptions.ex.DrawPageMissingError[source]

Draw page Missing Error

exception ooodev.exceptions.ex.GalleryError[source]

Generic Gallery Error

exception ooodev.exceptions.ex.GalleryNotFoundError[source]

Error when Gallery Item is not found

exception ooodev.exceptions.ex.GalleryTypeError[source]

Error when wrong gallery type is used.

Such as when trying to extract a XGraphic from a XGalleryItem that is not a graphic.

exception ooodev.exceptions.ex.GoalDivergenceError(divergence, message=None)[source]

Error when goal seek result divergence is too high

Parameters:
  • divergence (float) –

  • message (Any) –

Return type:

None

__init__(divergence, message=None)[source]

GoalDivergenceError Constructor

Parameters:
  • divergence (float) – divergence amount

  • message (Any, optional) – Message of error

Return type:

None

exception ooodev.exceptions.ex.ImageError[source]

Generic error when error occurs processing an image

exception ooodev.exceptions.ex.LineCursorError[source]

Handles Line Cursor errors

exception ooodev.exceptions.ex.LoNotLoadedError[source]

Error when accessing Lo before Lo.load_office is called

exception ooodev.exceptions.ex.LoadingError[source]

Generic Loading Error

Changed in version 0.9.8.

exception ooodev.exceptions.ex.MissingInterfaceError(interface, message=None, *args)[source]

Error when a interface is not found for a uno object

Parameters:
  • interface (Any) –

  • message (Any) –

Return type:

None

__init__(interface, message=None, *args)[source]

MissingInterfaceError constructor

Parameters:
  • interface (Any) – Missing Interface that caused error

  • message (Any, optional) – Message of error

Return type:

None

exception ooodev.exceptions.ex.MissingNameError[source]

Error when a name is not found.

New in version 0.17.13.

exception ooodev.exceptions.ex.MultiError(errors)[source]

Handles Multiple errors

Parameters:

errors (List[Exception]) –

Return type:

None

__init__(errors)[source]

MultiError Constructor

Parameters:

errors (List[Exception]) – List of errors

Return type:

None

exception ooodev.exceptions.ex.NameClashError[source]

Generic Name Clash Error

exception ooodev.exceptions.ex.NoneError[source]

Generic None Error. Usually means object is None

exception ooodev.exceptions.ex.NotFoundError[source]

Generic Not Found Error

exception ooodev.exceptions.ex.NotSupportedDocumentError[source]

Generic Not Supported Document Error

exception ooodev.exceptions.ex.NotSupportedError[source]

Generic Not Supported Error

exception ooodev.exceptions.ex.NotSupportedMacroModeError[source]

Handles errors of operations that are not allow when running as a macro.

This error is largely used for methods that require external imports such as XML.apply_xslt()

exception ooodev.exceptions.ex.NotSupportedServiceError(service_name, *args)[source]

Handles errors of service not being supported.

Parameters:
  • service_name (str) –

  • args (object) –

Return type:

None

__init__(service_name, *args)[source]

NotSupportedServiceError Constructor

Parameters:
  • service_name (str) – Service name

  • args (object) –

Return type:

None

exception ooodev.exceptions.ex.PageCursorError[source]

Handles Page Cursor errors

exception ooodev.exceptions.ex.ParagraphCursorError[source]

Handles Sentence Cursor errors

exception ooodev.exceptions.ex.PointError[source]

Generic Point Error

exception ooodev.exceptions.ex.PropertiesError[source]

Error for multiple properties

exception ooodev.exceptions.ex.PropertyError(prop_name, *args)[source]

Property Error

Parameters:
  • prop_name (str) –

  • args (object) –

Return type:

None

__init__(prop_name, *args)[source]

PropertyError Constructor

Parameters:
  • prop_name (str) – Property name that caused error

  • args (object) –

Return type:

None

exception ooodev.exceptions.ex.PropertyGeneralError[source]

Generic Property Error

exception ooodev.exceptions.ex.PropertyNotFoundError(prop_name, *args)[source]

Property Not Found Error

Parameters:
  • prop_name (str) –

  • args (object) –

Return type:

None

exception ooodev.exceptions.ex.PropertySetError[source]

Generic Property Set Error

exception ooodev.exceptions.ex.PropertySetMissingError[source]

Error for missing property set

exception ooodev.exceptions.ex.SentenceCursorError[source]

Handles Sentence Cursor errors

exception ooodev.exceptions.ex.ServiceError[source]

Generic Service Error

exception ooodev.exceptions.ex.ServiceNotSupported(*service, message='')[source]

Service not supported error

Parameters:

service (str) –

Return type:

None

__init__(*service, message='')[source]

Constructor

Parameters:
  • message (str, optional) – Extra error message.

  • *service (str) – Variable length argument list of UNO namespace strings such as com.sun.star.configuration.GroupAccess

Return type:

None

exception ooodev.exceptions.ex.ShapeError[source]

Generic Shape Error

exception ooodev.exceptions.ex.ShapeMissingError[source]

Missing Shape Error

exception ooodev.exceptions.ex.SizeError[source]

Generic Size Error

exception ooodev.exceptions.ex.StyleError[source]

Generic Dialog Error

exception ooodev.exceptions.ex.UnKnownError[source]

Error for unknown results

exception ooodev.exceptions.ex.UnOpenableError(fnm, *args)[source]
Parameters:
  • fnm (PathOrStr) –

  • args (object) –

Return type:

None

__init__(fnm, *args)[source]

PropertyError Constructor

Parameters:
  • fnm (PathOrStr) – File path that is not able to be opened.

  • args (object) –

Return type:

None

exception ooodev.exceptions.ex.ViewCursorError[source]

Handles View Cursor errors

exception ooodev.exceptions.ex.WordCursorError[source]

Handles Word Cursor errors