original_string: public function error( $message, $code = null, $data = null )
      {
          if ( null === $code && isset( $this->errorCodes[$message] ) )
          {
              $code = $this->errorCodes[$message];
          }
  
          return $this->getResponse( 'error', (object) array(
              'code'      => $code,
              'message'   => $message,
              'data'      => $data,
          ) );
      }
code: public function error( $message, $code = null, $data = null )
      {
          if ( null === $code && isset( $this->errorCodes[$message] ) )
          {
              $code = $this->errorCodes[$message];
          }
  
          return $this->getResponse( 'error', (object) array(
              'code'      => $code,
              'message'   => $message,
              'data'      => $data,
          ) );
      }
code_tokens: public function error ( $ message , $ code = null , $ data = null ) { if ( null === $ code && isset ( $ this -> errorCodes [ $ message ] ) ) { $ code = $ this -> errorCodes [ $ message ] ; } return $ this -> getResponse ( 'error' , ( object ) array ( 'code' => $ code , 'message' => $ message , 'data' => $ data , ) ) ; }
docstring: Send error result
  
  @param string $message
  @param int $code
  @param mixed $data
docstring_tokens: Send error result