Line data Source code
1 : /*
2 : * Package : mqtt_client
3 : * Author : S. Hamblett <steve.hamblett@linux.com>
4 : * Date : 31/05/2017
5 : * Copyright : S.Hamblett
6 : */
7 :
8 : part of mqtt_client;
9 :
10 : /// Exception thrown when a client identifier included in a message is too long.
11 : class ClientIdentifierException implements Exception {
12 : String _message;
13 :
14 1 : ClientIdentifierException(String clientIdentifier) {
15 1 : _message =
16 : "mqtt-client::ClientIdentifierException: Client id $clientIdentifier is too long at ${clientIdentifier
17 1 : .length}, "
18 : "Maximum ClientIdentifier length is ${Constants
19 1 : .maxClientIdentifierLength}";
20 : }
21 :
22 : @override
23 1 : String toString() => _message;
24 : }
|