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 the topic of a message is invalid
11 : class InvalidTopicException implements Exception {
12 : String _message;
13 :
14 1 : InvalidTopicException(String message, String topic) {
15 1 : _message =
16 1 : "mqtt-client::InvalidTopicException: Topic $topic is $message";
17 : }
18 :
19 1 : String toString() => _message;
20 : }
|