fbmobile/lib/core/error/service_exception.dart
2021-02-02 15:33:23 +01:00

12 lines
268 B
Dart

import '../enums/error_code.dart';
class ServiceException implements Exception {
final ErrorCode code;
final String message;
ServiceException({this.code = ErrorCode.GENERAL_ERROR, this.message = ''});
String toString() {
return "$code: $message";
}
}