-
-
Save tikarammardi/a488afdd0ef226374a6011f302aa8ce1 to your computer and use it in GitHub Desktop.
check specific error types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try{ | |
// some code to run | |
}catch(e){ | |
if(e instanceof EvalError ){ | |
//do something | |
}else{ | |
//do something else | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment