Skip to content

Commit

Permalink
fixup! feat!: improve deserialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 2, 2024
1 parent fdace1b commit 0ed6dd4
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions lib/src/core/exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ base class DartWotException implements Exception {
/// Constructor.
const DartWotException(this.message);

/// The error message of this [ValidationException].
/// The error message of this [DartWotException].
final String message;

/// The name of this [Exception] that will appear in the error message log.
Expand All @@ -24,34 +24,6 @@ base class DartWotException implements Exception {
String toString() => "$exceptionType: $message";
}

// /// An [Exception] that is thrown when the validation of a definition fails.
// base class ValidationException extends DartWotException {
// /// Constructor.
// const ValidationException(super.message, [this._validationErrors]);

// final List<Object>? _validationErrors;

// @override
// String get exceptionType => "ValidationException";

// @override
// String toString() {
// final String formattedValidationErrors;

// final validationErrors = _validationErrors;
// if (validationErrors != null) {
// formattedValidationErrors = [
// "\n\nErrors:\n",
// ...validationErrors,
// ].join("\n");
// } else {
// formattedValidationErrors = "";
// }

// return "$exceptionType: $message$formattedValidationErrors";
// }
// }

/// Custom [Exception] that is thrown when the discovery process fails.
final class DiscoveryException extends DartWotException {
/// Creates a new [DiscoveryException] with the specified error [message].
Expand Down

0 comments on commit 0ed6dd4

Please sign in to comment.