Skip to content

error_type

Hyomoto edited this page Jun 13, 2021 · 2 revisions
Jump To Go Back Arguments

error_type( error )

Returns: [undefined or Error](undefined or Error)

Returns the type of the provided error. If the value is not an error, undefined will be returned.

var _index = array_binary_search( [ 1, 2, 3 ], "dog" );

if ( error_type( _index ) == ValueNotFound ) { _index = -1; }

Arguments

Name Type Purpose
error [__Error__](__error__) The error to check
Clone this wiki locally