LCOV - code coverage report

Current view
top level - src/exceptions - squadron_error.dart
Test
lcov.info
Date
2026-11-07
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 {
81 SquadronError._(super.message, [super.stackTrace, int? command])
9 : _command = command,
101 super.init();
11
12 final int? _command;
13
141 @override
152 List serialize() => List.unmodifiable([
16 $squadronErrorType,
171 message,
182 stackTrace?.toString(),
191 _command,
20 ]);
21}
22
23const _$type = 0;
24const _$message = 1;
25const _$stackTrace = 2;
26const _$command = 3;
27
28@internal
29extension SquadronErrorImpl on SquadronError {
301 static SquadronError create(String message,
31 [StackTrace? stackTrace, int? command]) =>
321 SquadronError._(message, stackTrace, command);
33
341 static SquadronException? deserialize(List exceptionInfo) =>
352 (exceptionInfo[_$type] == $squadronErrorType)
361 ? SquadronError._(
371 exceptionInfo[_$message],
382 SquadronException.loadStackTrace(exceptionInfo[_$stackTrace]),
391 exceptionInfo[_$command],
40 )
41 : null;
42}
Choose Features