LCOV - code coverage report

Current view
top level - src/exceptions - squadron_error.dart
Test
lcov.info
Date
2025-03-26
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines1515100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'package:meta/meta.dart';
2
3import '_builtin_exceptions.dart';
4import 'squadron_exception.dart';
5
6/// Squadron Error
7class SquadronError extends SquadronException {
811 SquadronError._(super.message, [super.stackTrace, int? command])
9 : _command = command,
1011 super.init();
11
12 final int? _command;
13
142 @override
154 List serialize() => List.unmodifiable([
16 $squadronErrorType,
172 message,
184 stackTrace?.toString(),
192 _command,
20 ]);
21}
22
23const _$type = 0;
24const _$message = 1;
25const _$stackTrace = 2;
26const _$command = 3;
27
28@internal
29extension SquadronErrorImpl on SquadronError {
3011 static SquadronError create(String message,
31 [StackTrace? stackTrace, int? command]) =>
3211 SquadronError._(message, stackTrace, command);
33
342 static SquadronException? deserialize(List exceptionInfo) =>
354 (exceptionInfo[_$type] == $squadronErrorType)
362 ? SquadronError._(
372 exceptionInfo[_$message],
384 SquadronException.loadStackTrace(exceptionInfo[_$stackTrace]),
392 exceptionInfo[_$command],
40 )
41 : null;
42}
Choose Features