JavaScript API Reference for Oracle ADF Faces
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.
|
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.
|
public String description
The rarely-supported description of the error.
- See also:
message
public String fileName
The file that threw this error.
- See also:
lineNumber
public Number lineNumber
The line number in the file that threw this error.
- See also:
fileName
public String message
The message of the error.
- See also:
description
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.
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 |
public String toString()
Generates a String representation of this Error.
- Return:
String
- a String representation of this Error
Generated on 2014.03.27 12:59 UTC
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.