GridViewExportError

class GridViewExportError

Description

Raised when rendering or writing one view failed.

The original exception is always on __cause__, and is worth reading: a failed write arrives as the matching OSError subclass carrying errno, strerror and filename (so both except PermissionError and a check on errno work), and a failed render as a RuntimeError.

The view’s file is left as it was, whatever failed: a failure part-way through a view leaves the previous export’s file rather than a short one.

Variables:
  • qualified_name – The view being exported as a syside.QualifiedName, or None when it has no qualified name.

  • view_type – How that view was classified.

  • exported – The views written before this one failed, as GridExportReport.exported would have carried them. The run stops at the first failure, and the failing view wrote nothing, so this is everything this export put in the directory.