Skip to content

Commit

Permalink
docs: updated exception codes comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sairyss committed Feb 25, 2023
1 parent ee02993 commit 979dd0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/exceptions/exception.codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 979dd0a

Please sign in to comment.