OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

org.ecmascript.object.error
Class Error

org.ecmascript.object.Object
   |
   +--org.ecmascript.object.error.Error

public class Error
extends Object
The native browser JavaScript object used to represent an error.
An instance is typically created with the code throw new Error("This is an example.") but you should provide much more detail than this so the developer can easily solve the problem.

Note that this object is implemented and supported by the web browser and results of its use may vary.



Field Summary

public String
description
The rarely-supported description of the error.
public String
fileName
The file that threw this error.
public Number
lineNumber
The line number in the file that threw this error.
public String
message
The message of the error.
public String
name
The name of the error.
public Number
number
The rarely-supported error code number of the error.
public String
stack
The contextual call trace that led to the throwing of this error.


Fields inherited from org.ecmascript.object.Object

constructor, prototype


Constructor Summary

public
Error(String message)
The native browser JavaScript object used to represent an error.


Method Summary

public String
toString()
Generates a String representation of this Error.


Field Detail


description

public String description

The rarely-supported description of the error.
See also:
message

fileName

public String fileName

The file that threw this error.
See also:
lineNumber

lineNumber

public Number lineNumber

The line number in the file that threw this error.
See also:
fileName

message

public String message

The message of the error.
See also:
description

name

public String name

The name of the error.

number

public Number number

The rarely-supported error code number of the error.

stack

public String stack

The contextual call trace that led to the throwing of this error.

Constructor Detail


Error

public Error(String message)

The native browser JavaScript object used to represent an error.
An instance is typically created with the code throw new Error("This is an example.") but you should provide much more detail than this so the developer can easily solve the problem.

Note that this object is implemented and supported by the web browser and results of its use may vary.

Parameters:
message  -  the error message

Method Detail


toString

public String toString()

Generates a String representation of this Error.

Return:
String - a String representation of this Error

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2011.04.27 02:28 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.