This feature is experimental. It may be changed or removed in a future version without prior notice or deprecation.
Throws a JavaScript error with the given message.
The message will also be printed to the error log. Also a notification will be shown at the bottom of the screen.
The message may contain substitution marks.
up.fail('Division by zero')
up.fail('Unexpected result %o', result)
A message with details about the error.
The message can contain substitution marks
like %s
or %o
.
A list of variables to replace any substitution marks in the error message.