LEAP™ is a content editor’s dream (CMS), a designer’s best option, and the perfect framework for site development.
LEAP™ is simpleLEAPLEAP™ is secureLEAPLEAP™ is SEO-centric

xs_isError

The xs_isError method auto-collects the current error and stores it in a page var $gv_error

There is no requirement to check if this variable exists prior to invoking this method as it verified it is defined before any operation is performed.

To see what xs_isError has collected over the course of the current script or page, simply output $gv_error.

NOTE: xs_isError should pick up general errors, SQL errors and File handling errors.

Usage:

// Collect output from inline. Can include MySQL errors too.
inline($gv_sql,-SQL=$mySeQuelStringHere) => { xs_isError }

// Output what errors may have occurred.
$gv_error

-> You have an error in your SQL syntax near 'X' at line 1

To use within a protect block:

protect => {
	handle_error => { 
		xs_isError
	}
// code here
}

© Copyright LEAP™ 2017 | Privacy Policy | Design by Treefrog Inc.