Skip to content

How to raise error in Javascripts Katas? #2433

Answered by hobovsky
jotakar asked this question in Q&A
Discussion options

You must be logged in to vote

The way of signaling an error might depend on a kata, so it would be better to ask in discourse of a specific kata.

What seems suspicious is that a kata asks you to raise an error, but for some reason you went with try/catch what is an exact opposite of the task (try and catch are used to handle an error, and not to raise it). try and catch should not be necessary in solution (but again, it depends on what exactly kata wants you to do).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jotakar
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jotakar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants