classes/CLI.php
public static function error(callable $callback = null){
        $callback
          ? is_callable($callback) && static::$error = $callback
          : static::$error && call_user_func(static::$error);
    }
public static function error(callable $callback = null){
        $callback
          ? is_callable($callback) && static::$error = $callback
          : static::$error && call_user_func(static::$error);
    }
public static function error ( callable $ callback = null ) { $ callback ? is_callable ( $ callback ) && static :: $ error = $ callback : static :: $ error && call_user_func ( static :: $ error ) ; }
Bind a callback when an error occurs.
@param  callable $callback The callback to be binded to the route. If omitted triggers the callback.
Bind a callback when an error occurs .