I would like to know what are the functions the Error object of nodejs express exposes for use in Error Handling?
A console.log
of an error call new Error('NotFound')
is showing only [Error: NotFound]
, is this because .toString()
method is overriden? How do find the properties and functions exposed by these objects?