PhpParser\Error::getRawMessage PHP Method

getRawMessage() public method

Gets the error message
public getRawMessage ( ) : string
return string Error message
    public function getRawMessage()
    {
        return $this->rawMessage;
    }

Usage Example

 private function formatErrorMessage(Error $e, $code)
 {
     if ($e->hasColumnInfo()) {
         return $e->getRawMessage() . ' from ' . $e->getStartLine() . ':' . $e->getStartColumn($code) . ' to ' . $e->getEndLine() . ':' . $e->getEndColumn($code);
     } else {
         return $e->getMessage();
     }
 }
All Usage Examples Of PhpParser\Error::getRawMessage