Skip to content

Commit

Permalink
docs(readme): API reference and doc updates for RegalError
Browse files Browse the repository at this point in the history
  • Loading branch information
jcowman2 committed Jan 11, 2019
1 parent b241c90 commit 6cc4ff6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,34 @@ Member | Description

### `RegalError`

**_Class_**

Error that is thrown if a Regal function fails.

```ts
class RegalError extends Error {
constructor(message: string)
}
```

#### Extends

`Error`

#### Constructor

Constructs a `RegalError` with the given message.

```ts
constructor(message: string)
```

**Parameters**

Parameter | Description
--- | ---
`message: string` | The error message, which will be prepended with "RegalError: ".

### `TrackedEvent`

### `enqueue`
Expand Down
2 changes: 1 addition & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/**
* Error thrown during execution of Regal library functions.
* Error that is thrown if a Regal function fails.
*/
export class RegalError extends Error {
/**
Expand Down

0 comments on commit 6cc4ff6

Please sign in to comment.