nsIException 编辑
xpcom/base/nsIException.idl
Scriptable Please add a summary to this article. Inherits from: nsISupports
Last changed in Gecko 1.7Method overview
string toString(); |
Attributes
Attribute | Type | Description |
columnNumber | PRUint32 | Valid column numbers begin at 0. There is no unambiguous indicator for unknown. Read only. |
data |
| Arbitary data for the implementation. Read only. |
filename | string | Filename location. This is the location that caused the error, which may or may not be a source file location. For example, standard language errors would generally have the same location as their top stack entry. File parsers may put the location of the file they were parsing. null indicates "no data" Read only. |
inner |
| An inner exception that triggered this, if available. Read only. |
lineNumber | PRUint32 | Valid line numbers begin at '1'. '0' indicates unknown. Read only. |
location |
| A stack trace, if available. Read only. |
message | string | A custom message set by the thrower. [binaryname(MessageMoz)] Read only. |
name | string | The name of the error code (A string representation of result) Read only. |
result | nsresult | The nsresult associated with this exception. Read only. |
Methods
toString()
A generic formatter - make it suitable to print, etc.
string toString();
Parameters
None.
Return value
A string suitable for output.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论