fn: error
[contents]

Contents

Syntax

The syntax for error calls is:

f++:  
error(string)

n++:  
@error(string)

Description

The error function is for throwing errors, it takes a single string parameter that should be a message to be displayed, the function will then output the error message along with the file path and line number, then terminate the script or build process.

f++ example

Example of error being used with f++:

error("index out of bounds")

n++ example

Example of error being used with n++:

@error("index out of bounds")