-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1757 from ardriveapp/PE-6212-pass-transaction-id-…
…on-transaction-decryption-exception-and-filter-log-if-corrupted-data-app-version-2-32-0 PE-6213: task(logging)
- Loading branch information
Showing
4 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,50 @@ | ||
class ArDriveDecryptionException implements Exception { | ||
final String? corruptedDataAppVersion; | ||
final String? corruptedTransactionId; | ||
|
||
ArDriveDecryptionException({this.corruptedDataAppVersion}); | ||
ArDriveDecryptionException({ | ||
this.corruptedDataAppVersion, | ||
this.corruptedTransactionId, | ||
}); | ||
|
||
@override | ||
String toString() { | ||
return 'ARFSDecryptionException: corruptedDataAppVersion: $corruptedDataAppVersion'; | ||
return 'ArDriveDecryptionException: corruptedDataAppVersion: $corruptedDataAppVersion and corruptedTransactionId: $corruptedTransactionId'; | ||
} | ||
} | ||
|
||
class TransactionDecryptionException extends ArDriveDecryptionException { | ||
TransactionDecryptionException({super.corruptedDataAppVersion}); | ||
TransactionDecryptionException({ | ||
super.corruptedDataAppVersion, | ||
super.corruptedTransactionId, | ||
}); | ||
|
||
@override | ||
String toString() { | ||
return 'TransactionDecryptionException: corruptedDataAppVersion: $corruptedDataAppVersion'; | ||
return 'TransactionDecryptionException: corruptedDataAppVersion: $corruptedDataAppVersion and corruptedTransactionId: $corruptedTransactionId'; | ||
} | ||
} | ||
|
||
class MissingCipherTagException extends ArDriveDecryptionException { | ||
MissingCipherTagException({super.corruptedDataAppVersion}); | ||
MissingCipherTagException({ | ||
super.corruptedDataAppVersion, | ||
super.corruptedTransactionId, | ||
}); | ||
|
||
@override | ||
String toString() { | ||
return 'MissingCipherTagException: corruptedDataAppVersion: $corruptedDataAppVersion'; | ||
return 'MissingCipherTagException: corruptedDataAppVersion: $corruptedDataAppVersion and corruptedTransactionId: $corruptedTransactionId'; | ||
} | ||
} | ||
|
||
class UnknownCipherException extends ArDriveDecryptionException { | ||
UnknownCipherException({super.corruptedDataAppVersion}); | ||
UnknownCipherException({ | ||
super.corruptedDataAppVersion, | ||
super.corruptedTransactionId, | ||
}); | ||
|
||
@override | ||
String toString() { | ||
return 'UnknowCipherException: corruptedDataAppVersion: $corruptedDataAppVersion'; | ||
return 'UnknowCipherException: corruptedDataAppVersion: $corruptedDataAppVersion and corruptedTransactionId: $corruptedTransactionId'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ void main() { | |
'2.30.0', | ||
'2.30.1', | ||
'2.30.2', | ||
'2.32.0', | ||
'2.36.0', | ||
'2.37.0', | ||
'2.37.1' | ||
|