on-internet
← Community

Javascript - Exception/Error data type?

Stack Overflow ·

try { example.example = example; } catch (err) { TraceError.sysout("Error test!", err); } In this above code segment, I am forcing an error since example is not defined. I am learning javascript currently and was wondering if in javascript what type err would be. Is there an Error object or an Exception object in this language, and is there a way to get information about that err object so that I can print a detailed message in my .sysout method?

Comments

Sign in or sign up to comment and upvote.

No comments yet.