#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Do.Error Class

Defined in: `event-custom/js/event-do.js:364`
Module: event-custom-base
Parent Module: event-custom

Deprecated: use Y.Do.Halt or Y.Do.Prevent

Return an Error object when you want to terminate the execution of all subsequent method calls.

## Constructor

### `Do.Error`

(

- `msg`
- `retVal`

)
deprecated

Defined in `event-custom/js/event-do.js:364`

Deprecated: use Y.Do.Halt or Y.Do.Prevent

#### Parameters:

- `msg` String

  (optional) Explanation of the altered return value

- `retVal` Any

  Return value passed to code that invoked the wrapped function.

- Index

## Item Index