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 processing a Message that is invalid in some way.
11 : class InvalidMessageException implements Exception {
12 : String _message;
13 :
14 2 : InvalidMessageException(String text) {
15 2 : _message =
16 2 : "mqtt-client::InvalidMessageException: $text";
17 : }
18 :
19 : @override
20 1 : String toString() => _message;
21 : }
|