#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Test.UnexpectedError Class

Extends YUITest.AssertionError
Defined in: `test/js/UnexpectedError.js:1`
Module: test

UnexpectedError is subclass of AssertionError that is thrown whenever an error occurs within the course of a test and the test was not expected to throw an error.

- Index
- Properties

## Item Index

### Properties

- cause
- name
- stack

## Properties

### `cause`

Error

Defined in `test/js/UnexpectedError.js:19`

The unexpected error that occurred.

### `name`

String

Defined in `test/js/UnexpectedError.js:26`

The name of the error that occurred.

### `stack`

String

Defined in `test/js/UnexpectedError.js:33`

Stack information for the error (if provided).