Creates an exception with a stable code and optional detail.
code
const XVideoExportException(this.code, [this.message]);