public function error($str, $status = 1, $new_line = true)
    {
        fwrite($this->error, $str.( true===$new_line ? PHP_EOL : '' ));
        fflush($this->error);
        if ($status>0) exit($status);
    }
public function error($str, $status = 1, $new_line = true)
    {
        fwrite($this->error, $str.( true===$new_line ? PHP_EOL : '' ));
        fflush($this->error);
        if ($status>0) exit($status);
    }
public function error ( $ str , $ status = 1 , $ new_line = true ) { fwrite ( $ this -> error , $ str . ( true === $ new_line ? PHP_EOL : '' ) ) ; fflush ( $ this -> error ) ; if ( $ status > 0 ) exit ( $ status ) ; }
Write a message on `STDERR` and exit with an error status

@param string $str The error message string to write
@param int $status The error status for exit (default is `1`) ; you can set it on `0` to not exit
@param bool $new_line Pass a new line befor exit (default is `true`)
@return void
Write a message on STDERR and exit with an error status