Throw an error if validation predicate fails. Available in the main PhET-iO js import.
Parameters:
| Name | Type | Description |
|---|---|---|
b |
boolean | predicate to test |
message |
string | Error message if predicate fails |