Suppose I have:
var err = new Error('My error!');
How to get line and file name, where Error was created? Like in PHP:
Error
$ex = new \Exception(); $ex->getLine(); $ex->getFile();
No comments:
Post a Comment