public function toArray() { if (!$this->code) { $this->code = 400; } return ApiResource::getErrorResponse($this->code, $this->message); }
public function toArray() { //print_r($this->code);die("in exception class"); return ApiResource::getErrorResponse($this->code, $this->message); }