findOrFail method
Find a record by its primary key or throw an exception.
Implementation
@override
Future<T> findOrFail(dynamic id, [String column = 'id']) async {
final result = await find(id, column);
if (result == null) {
throw Exception('Record not found');
}
return result;
}