Sets the attributes of the node/token the error occurred at.
array<string, mixed> $attributes:
public function setAttributes(array $attributes) : void { $this->attributes = $attributes; $this->updateMessage(); }