mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-06 05:18:47 +00:00
feat: implement web service
Signed-off-by: The one with the braid <info@braid.business>
This commit is contained in:
parent
44494eaa90
commit
6e7f19a764
26 changed files with 331 additions and 512 deletions
|
@ -1,30 +0,0 @@
|
|||
abstract class PKPassError extends Error {
|
||||
final String message;
|
||||
|
||||
PKPassError({required this.message});
|
||||
|
||||
@override
|
||||
String toString() => 'PKPassError: $message';
|
||||
}
|
||||
|
||||
class InvalidEncodingError extends PKPassError {
|
||||
InvalidEncodingError() : super(message: 'Input not in ZIP format.');
|
||||
}
|
||||
|
||||
class ManifestNotFoundError extends PKPassError {
|
||||
ManifestNotFoundError()
|
||||
: super(message: 'No manifest.json found in PKPass archive.');
|
||||
}
|
||||
|
||||
class ManifestChecksumError extends PKPassError {
|
||||
final String expected;
|
||||
final String actual;
|
||||
|
||||
ManifestChecksumError({
|
||||
required this.expected,
|
||||
required this.actual,
|
||||
}) : super(
|
||||
message:
|
||||
'Manifest sha1 checksum missmatch, expected $expected, actual $actual',
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue