Functiondojox.uuid.assert

dojo.require("dojox.uuid._base");
defined in dojox/uuid/_base.js

If the asserted condition is true, this method does nothing. If the condition is false, we throw an error with a error message.

Usage

function (/*Boolean*/ booleanValue, /*String?*/ message) (view source)
parametertypedescription
booleanValueBooleanMust be true for the assertion to succeed.
messageStringOptional. A string describing the assertion. throws: Throws an Error if 'booleanValue' is false.