LCOV - code coverage report
Current view: top level - lib/src/utils - client_init_exception.dart (source / functions) Hit Total Coverage
Test: merged.info Lines: 3 6 50.0 %
Date: 2024-09-04 20:26:16 Functions: 0 0 -

          Line data    Source code
       1             : /// Exception thrown on Client initialization. This object might contain
       2             : /// enough information to restore the session or to decide if you need to
       3             : /// logout the session or clear the database.
       4             : class ClientInitException implements Exception {
       5             :   final Object originalException;
       6             :   final Uri? homeserver;
       7             :   final String? accessToken;
       8             :   final String? userId;
       9             :   final String? deviceId;
      10             :   final String? deviceName;
      11             :   final String? olmAccount;
      12             : 
      13           1 :   ClientInitException(
      14             :     this.originalException, {
      15             :     this.homeserver,
      16             :     this.accessToken,
      17             :     this.userId,
      18             :     this.deviceId,
      19             :     this.deviceName,
      20             :     this.olmAccount,
      21             :   });
      22             : 
      23           1 :   @override
      24           2 :   String toString() => originalException.toString();
      25             : }
      26             : 
      27             : class ClientInitPreconditionError implements Exception {
      28             :   final String cause;
      29             : 
      30           0 :   ClientInitPreconditionError(this.cause);
      31             : 
      32           0 :   @override
      33           0 :   String toString() => 'Client Init Precondition Error: $cause';
      34             : }

Generated by: LCOV version 1.14