changeToNotFoundFailure method

NotFoundFailure changeToNotFoundFailure({
  1. String? traceId,
  2. String? code,
  3. String? resourceType,
  4. String? resourceId,
})

Implementation

NotFoundFailure changeToNotFoundFailure({
  String? traceId,
  String? code,
  String? resourceType,
  String? resourceId,
}) {
  return NotFoundFailure.fromTrusted(
    message: message,
    traceId: traceId ?? this.traceId,
    isRetryable: isRetryable,
    code: code ?? this.code,
    resourceType: resourceType,
    resourceId: resourceId,
  );
}