LCOV - code coverage report
Current view: top level - src/exception - mqtt_client_client_identifier_exception.dart (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 5 5 100.0 %
Date: 2017-10-09 Functions: 0 0 -

          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             : }

Generated by: LCOV version 1.10