mirrored_repositories/Note_app_ddd/lib/domain
import '../../domain/core/failures.dart';

// when get email and password
class UnexpectedValueError extends Error {
  final ValueFailure valueFailure;

  UnexpectedValueError(this.valueFailure);

  @override
  String toString() {
    const explanation =
        'Encountered a ValueFailure at an unrecoverable point. Terminating.';
    return Error.safeToString('$explanation Failure was: $valueFailure');
  }
}

// when get notes
class NotAuthenticatedError extends Error {}
