class CustomException implements Exception { CustomException([this._message, this._prefix]); final dynamic _message; final dynamic _prefix; String toString() { return "$_prefix$_message"; } } class FetchDataException extends CustomException { FetchDataException([String message]) : super(message, "Error During Communication: "); } class BadRequestException extends CustomException { BadRequestException([String message]) : super(message, "Invalid Request: "); } class UnauthorisedException extends CustomException { UnauthorisedException([String message]) : super(message, "Unauthorised: "); } class InvalidInputException extends CustomException { InvalidInputException([String message]) : super(message, "Invalid Input: "); }