mirrored_repositories/Flutter-Mobile-Application-Development/flutter_dotnet_web_api_integration/lib
class AppException implements Exception{
  final _message;
  final _prefix;

  AppException([this._message,this._prefix]);

  String toString(){
    return "$_prefix$_message";
  }
}

class FetchDataException extends AppException{
  FetchDataException([String? message]):super(message,"Error During Communication: ");
}

class BadRequestException extends AppException{
  BadRequestException([message]):super(message,"Invalid Request: ");
}

class UnauthorisedException extends AppException{
  UnauthorisedException([message]):super(message,"Unauthorised: ");
}

class InvalidInputException extends AppException{
  InvalidInputException([String? message]):super(message,"Invalid Input: ");
}

