JSDoc: Class: JavaScriptError

# Class: JavaScriptError

## JavaScriptError(x, fnNameopt, fileopt, lineopt, scriptopt)

Creates a richly annotated error for an error situation that occurred whilst evaluating injected scripts.

## Constructor

#### new JavaScriptError(x, fnNameopt, fileopt, lineopt, scriptopt)

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`x` | string | Error |  | An Error object instance or a string describing the error situation.
`fnName` | string | <optional> | Name of the function to use in the stack trace message.
`file` | string | <optional> | Filename of the test file on the client.
`line` | number | <optional> | Line number of |file|.
`script` | string | <optional> | Script being executed, in text form.

Source:
  - error.js, line 403