update: fixing minor lint warnings

This commit is contained in:
Patrick Stewart 2024-12-26 21:51:44 -07:00
parent f3b0fac943
commit 786224caf5

View file

@ -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]);
}