Line data Source code
1 : import 'package:at_client/src/exception/at_client_error_codes.dart';
2 :
3 : class AtClientException implements Exception {
4 : String? errorCode;
5 : String? errorMessage;
6 :
7 0 : AtClientException(this.errorCode, this.errorMessage);
8 :
9 0 : @override
10 : String toString() {
11 0 : return '$errorCode: $errorMessage';
12 : }
13 : }
14 :
15 : class AtKeyException extends AtClientException {
16 0 : AtKeyException(message)
17 0 : : super(atClientErrorCodes['AtKeyException'], message);
18 : }
|