public static function err($cx, $err) {
        if ($cx['flags']['debug'] & static::DEBUG_ERROR_LOG) {
            error_log($err);
            return;
        }
        if ($cx['flags']['debug'] & static::DEBUG_ERROR_EXCEPTION) {
            throw new \Exception($err);
        }
    }
public static function err($cx, $err) {
        if ($cx['flags']['debug'] & static::DEBUG_ERROR_LOG) {
            error_log($err);
            return;
        }
        if ($cx['flags']['debug'] & static::DEBUG_ERROR_EXCEPTION) {
            throw new \Exception($err);
        }
    }
public static function err ( $ cx , $ err ) { if ( $ cx [ 'flags' ] [ 'debug' ] & static :: DEBUG_ERROR_LOG ) { error_log ( $ err ) ; return ; } if ( $ cx [ 'flags' ] [ 'debug' ] & static :: DEBUG_ERROR_EXCEPTION ) { throw new \ Exception ( $ err ) ; } }
Handle error by error_log or throw exception.

@param array<string,array|string|integer> $cx render time context for lightncandy
@param string $err error message

@throws \Exception
Handle error by error_log or throw exception .