Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

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