1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23:
<?php
namespace LeanCloud\Engine;
/**
* Error thrown when invoking function error
*/
class FunctionError extends \Exception {
/**
* Http status code
*/
public $status;
public function __construct($message, $code = 1, $status = 400) {
parent::__construct($message, $code);
$this->status = $status;
}
public function __toString() {
return __CLASS__ . ": [{$this->code}] {$this->message}\n";
}
}