From 786224caf5986a18b96c005d6311e37b29b99a35 Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Thu, 26 Dec 2024 21:51:44 -0700 Subject: [PATCH] update: fixing minor lint warnings --- incubation/container/container/lib/src/exception.dart | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/incubation/container/container/lib/src/exception.dart b/incubation/container/container/lib/src/exception.dart index 2c894d8..72eaf7f 100644 --- a/incubation/container/container/lib/src/exception.dart +++ b/incubation/container/container/lib/src/exception.dart @@ -24,19 +24,17 @@ abstract class ContainerException implements Exception { /// Exception thrown when reflection operations fail class ReflectionException extends ContainerException { - ReflectionException(String message, [Object? cause]) : super(message, cause); + ReflectionException(super.message, [super.cause]); } /// Exception thrown when a binding resolution fails class BindingResolutionException extends ContainerException { - BindingResolutionException(String message, [Object? cause]) - : super(message, cause); + BindingResolutionException(super.message, [super.cause]); } /// Exception thrown when a circular dependency is detected class CircularDependencyException extends ContainerException { - CircularDependencyException(String message, [Object? cause]) - : super(message, cause); + CircularDependencyException(super.message, [super.cause]); } /// Exception thrown when an entry is not found in the container @@ -50,6 +48,5 @@ class EntryNotFoundException extends ContainerException { /// Exception thrown when there are contextual binding issues class ContextualBindingException extends ContainerException { - ContextualBindingException(String message, [Object? cause]) - : super(message, cause); + ContextualBindingException(super.message, [super.cause]); }