You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
435 B

  1. class ServerException implements Exception {}
  2. class CacheException implements Exception {}
  3. class NetworkException implements Exception {}
  4. ///can be used for throwing [NoInternetException]
  5. class NoInternetException implements Exception {
  6. late String _message;
  7. NoInternetException([String message = 'NoInternetException Occurred']) {
  8. this._message = message;
  9. }
  10. @override
  11. String toString() {
  12. return _message;
  13. }
  14. }