您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
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. }