compileml.export

ExportError

class ExportError(code: str, message: str)

from compileml.export import ExportError

An artifact an exporter will not render, with a stable code.

Codes (documented in docs/howto/deploy.md):

- EXPLAIN_NOT_EXACT — explain=True on an artifact whose attribution is not exact (whitebox depth > 2). Reason codes would not reconcile to the score, so none are emitted. Both exports. - REASON_CODE_NOT_ASCII — a reason code that is not printable ASCII. Mainframe character sets would not carry it unchanged; give the feature an ASCII code in the artifact's reason dictionary. COBOL export only.

Fields#

NameTypeDefaultKind
codestrrequiredpositional
messagestrrequiredpositional