OxL Reference

method DbError.show

The error as text: DbError(Conflict): message.

Example:

oxl✓ checked in CI
fn main() io {
  print(DbError{ kind: DbErrorKind.Busy, msg: "database is locked" }.show())
}
Output
DbError(Busy): database is locked
pub(api) fn show() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/orm/orm.oxl:712

See also