NotFoundError.new

const NotFoundError([
  1. String resource = 'Resource'
])

Creates a not found error.

Implementation

const NotFoundError([String resource = 'Resource'])
  : super('$resource not found', 404);