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