|
|
One of the messiest problems in every software project is handling and managing error messages. Each developer tends to create his or her own style for conveying them to the confused user. If conventions and methodology are not in place in the beginning of the project, it is very unlikely that members of the team will fix it at the end. Some programming languages provide infrastructure for creating, managing, and displaying error messages. JavaScript's support includes an object and properties. The Error object
is constructed with two arguments:
The following statement creates an
instance of the
The
We have added the constructor above to
this tip, and now you can try
and print both properties of |
Send mail to santhosh_emids@yahoo.com with questions or comments about
this web site.
|