API Docs for: 3.5.0
Show:

Test.UnexpectedValue Class

Extends AssertionError
Module: widget-parent

UnexpectedValue is subclass of Error that is thrown whenever a value was unexpected in its scope. This typically means that a test was performed to determine that a value was not equal to a certain value.

Constructor

Test.UnexpectedValue

(
  • message
  • unexpected
)

Parameters:

  • message String

    The message to display when the error occurs.

  • unexpected Object

    The unexpected value.

Item Index

Methods

Properties

Methods

getMessage

() String

Returns a fully formatted error for an assertion failure. This message provides information about the expected and actual values.

Returns:

String: A string describing the error.

Properties

name

String

The name of the error that occurred.

unexpected

Object

The unexpected value.