Reference

Error

Throw error

Input An error code and a message string.
Output Throws an error that wraps the provided code and message. This function never returns normally.

Signature

error_throw(a: Any, b: String): Error

Example

error_throw(404, "Not Found") // throws an error with code 404 and message "Not Found"