public function addData(array $data):ErrorResponseBuilder
    {
        $this->data = array_merge($this->data, $data);

        return $this;
    }
public function addData(array $data):ErrorResponseBuilder
    {
        $this->data = array_merge($this->data, $data);

        return $this;
    }
public function addData ( array $ data ) : ErrorResponseBuilder { $ this -> data = array_merge ( $ this -> data , $ data ) ; return $ this ; }
Add additonal data appended to the error object.

@param  array $data
@return self
Add additonal data appended to the error object .