Asserts that a value is a non-empty string.
The value to check.
The name of the parameter/field being validated (for error reporting).
TypeError When the value is not a string or contains only whitespace.
assertNonEmptyString(token, "token"); Copy
assertNonEmptyString(token, "token");
Asserts that a value is a non-empty string.