From 979dd0ac10ab17f67c5bdf25e8772b87ad92fd34 Mon Sep 17 00:00:00 2001 From: user Date: Sat, 25 Feb 2023 20:55:22 +0100 Subject: [PATCH] docs: updated exception codes comment --- src/libs/exceptions/exception.codes.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/exceptions/exception.codes.ts b/src/libs/exceptions/exception.codes.ts index e576d079..3291bfbb 100644 --- a/src/libs/exceptions/exception.codes.ts +++ b/src/libs/exceptions/exception.codes.ts @@ -3,8 +3,9 @@ * exception is a good practice, since when that exception * is transferred to another process `instanceof` check * cannot be performed anymore so a `code` string is used instead. - * code enum types can be stored in a separate file so they - * can be shared and reused on a receiving side + * code constants can be stored in a separate file so they + * can be shared and reused on a receiving side (code sharing is + * useful when developing fullstack apps or microservices) */ export const ARGUMENT_INVALID = 'GENERIC.ARGUMENT_INVALID'; export const ARGUMENT_OUT_OF_RANGE = 'GENERIC.ARGUMENT_OUT_OF_RANGE';