Welcome to mirror list, hosted at ThFree Co, Russian Federation.

throw_custom_error.out « message « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0c6b9d128c9095a584646f70139ba153d04c8c96 (plain)
1
2
3
4
*test*message*throw_custom_error.js:*
throw ({ name: 'MyCustomError', message: 'This is a custom message' });
^
MyCustomError: This is a custom message