KoolbaseNotFoundException constructor

const KoolbaseNotFoundException([
  1. String message = 'The requested resource was not found',
  2. String code = 'not_found'
])

code is carried rather than fixed: the server says which thing was missing — a record, a collection, a vector field — and an app reading code should get that answer, not the category. Catching the class still works for anyone who only cares that something was absent.

Implementation

const KoolbaseNotFoundException([
  super.message = 'The requested resource was not found',
  String code = 'not_found',
]) : super(code: code);