YUI recommends YUI3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

This documentation is no longer maintained.

Yahoo! UI Library

yuitest  2.9.0

Yahoo! UI Library > yuitest > YAHOO.util.UnexpectedValue

Class YAHOO.util.UnexpectedValue - extends YAHOO.util.AssertionError

UnexpectedValue is subclass of AssertionError 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.


YAHOO.util.UnexpectedValue ( message , unexpected )
message <String> The message to display when the error occurs.
unexpected <Object> The unexpected value.


name - String

The name of the error that occurred.

unexpected - Object

The unexpected value.

Properties inherited from YAHOO.util.AssertionError:



String getMessage ( )
Returns a fully formatted error for an assertion failure. The message contains information about the unexpected value that was encountered.
Returns: String
A string describing the error.

Methods inherited from YAHOO.util.AssertionError:

Copyright © 2011 Yahoo! Inc. All rights reserved.