From d5bca209f0f8b4fd49c4eaae138001f80fad5d05 Mon Sep 17 00:00:00 2001 From: manushak Date: Thu, 22 Aug 2024 18:18:14 +0400 Subject: [PATCH 1/3] feat(util): add custom errors for arithmetic operation --- src/utils/errors.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/errors.ts b/src/utils/errors.ts index a1986b7..ab16c67 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -17,6 +17,8 @@ const CUSTOM_ERRORS = [ 'MissingPluginDependenciesError', 'PluginInitializationError', 'InvalidExhaustPluginError', + 'WrongArthimeticOperationError', + 'ZeroDivisionArthimeticOperationError', /** Plugins */ 'ConfigError', 'MissingInputDataError', From 0f14c92619b8204a901e02bf4da08be1e24ff651 Mon Sep 17 00:00:00 2001 From: Manushak Keramyan Date: Thu, 22 Aug 2024 18:25:41 +0400 Subject: [PATCH 2/3] Update src/utils/errors.ts Co-authored-by: Narek Hovhannisyan Signed-off-by: Manushak Keramyan --- src/utils/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/errors.ts b/src/utils/errors.ts index ab16c67..e4f48b4 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -17,7 +17,7 @@ const CUSTOM_ERRORS = [ 'MissingPluginDependenciesError', 'PluginInitializationError', 'InvalidExhaustPluginError', - 'WrongArthimeticOperationError', + 'WrongArithmeticOperationError', 'ZeroDivisionArthimeticOperationError', /** Plugins */ 'ConfigError', From b95ea9a439408d880cb77cb6641959e4b92769f7 Mon Sep 17 00:00:00 2001 From: Manushak Keramyan Date: Thu, 22 Aug 2024 18:26:17 +0400 Subject: [PATCH 3/3] Update src/utils/errors.ts Co-authored-by: Narek Hovhannisyan Signed-off-by: Manushak Keramyan --- src/utils/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/errors.ts b/src/utils/errors.ts index e4f48b4..182e91e 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -18,7 +18,7 @@ const CUSTOM_ERRORS = [ 'PluginInitializationError', 'InvalidExhaustPluginError', 'WrongArithmeticOperationError', - 'ZeroDivisionArthimeticOperationError', + 'ZeroDivisionArithmeticOperationError', /** Plugins */ 'ConfigError', 'MissingInputDataError',