GRDECLExportError

class petres.errors.GRDECLExportError[source]

Bases: EclipseError, ExportError

Represent errors raised during GRDECL export operations.

This exception captures generic failures that occur during GRDECL serialization and export routines.

Parameters:
  • message (str or None, default=None) – Error message template. If None, default_message is used.

  • **context (object) – Keyword values used to format the resolved message template.

Notes

Message formatting may raise ValueError when a required template key is missing from context.

Initialize the error and format the active message template.

default_message: ClassVar[str] = 'An error occurred during GRDECL export.'