Failure.notFound constructor
const
Failure.notFound({
- String message = 'Resource not found',
- int? code = 404,
- StackTrace? stackTrace,
- Object? cause,
HTTP 404 — the target resource does not exist.
Implementation
const Failure.notFound({
this.message = 'Resource not found',
this.code = 404,
this.stackTrace,
this.cause,
}) : retryAfter = null,
kind = FailureKind.notFound,
type = FailureType.notFound;