private function getError($code, $id = null, $data = null)
    {
        return [
            'jsonrpc' => '2.0',
            'id' => $id,
            'error' => [
                'code' => $code,
                'message' => isset($this->errorMessages[$code]) ?
                    $this->errorMessages[$code] : $this->errorMessages[self::INTERNALERROR],
                'data' => $data,
            ],
        ];
    }
private function getError($code, $id = null, $data = null)
    {
        return [
            'jsonrpc' => '2.0',
            'id' => $id,
            'error' => [
                'code' => $code,
                'message' => isset($this->errorMessages[$code]) ?
                    $this->errorMessages[$code] : $this->errorMessages[self::INTERNALERROR],
                'data' => $data,
            ],
        ];
    }
private function getError ( $ code , $ id = null , $ data = null ) { return [ 'jsonrpc' => '2.0' , 'id' => $ id , 'error' => [ 'code' => $ code , 'message' => isset ( $ this -> errorMessages [ $ code ] ) ? $ this -> errorMessages [ $ code ] : $ this -> errorMessages [ self :: INTERNALERROR ] , 'data' => $ data , ] , ] ; }
Get Error Response
@param int $code
@param mixed $id
@param null $data
@return array
Get Error Response