Skip to content

Commit

Permalink
add info for exception() method
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat authored and Patrick committed Mar 3, 2021
1 parent 8c5d1fd commit 8f161a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ This section only applies if you are using `node-ray` in a browser environment _
You can configure `node-ray` by importing the `Ray` class and calling the `useDefaultSettings()` method.

```js
const { Ray, ray } = require('node-ray');
const { Ray, ray } = require('node-ray/web');

// set several settings at once:
Ray.useDefaultSettings({
Expand Down Expand Up @@ -215,6 +215,7 @@ See [using the package](docs/usage.md).
| `ray().enabled()` | Check if Ray is enabled |
| `ray().error(err)` | Display information about an Error/Exception |
| `ray().event(name, data)` | Display information about an event with optional data |
| `ray().exception(err)` | Display extended information and stack trace for an Error/Exception |
| `ray().file(filename)` | Display contents of a file - NodeJS only |
| `ray(…).hide()` | Display something in Ray and make it collapse immediately |
| `ray().hideApp()` | Programmatically hide the Ray app window |
Expand Down

0 comments on commit 8f161a5

Please sign in to comment.