|
September 20, 2002 Extracting Information from the Error Object Tips: September 2002
Yehuda Shiran, Ph.D.
|
|
Let's look at the following try...catch statement example:
Notice the four properties of the Error object: number, description, name, and message. The description property is identical to the message property. The duplication is for historic reasons, and from the need to comply with the ECMA standard. The name property is Error, and the number property is the number assigned to the object during construction.
Notice that we bit-anded the
You should also take notice that
Put the example above in a file, say
People who read this tip also read these tips: Look for similar tips by subject: |