class_docstr: Error raised by :meth:`.Validator.validate`.
  
  :param cursor_position: The cursor position where the error occurred.
  :param message: Text.
class_docstr_tok: ["Error","raised","by",":","meth",":","`",".Validator.validate","`",".",":","param","cursor_position",":","The","cursor","position","where","the","error","occurred",".",":","param","message",":","Text","."]
code: def __init__(
      self, cursor_position: int = 0, message: str = ""
  ) -> None:
      super().__init__(message)
      self.cursor_position = cursor_position
      self.message = message
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import Callable
  from prompt_toolkit.eventloop import run_in_executor_with_context
  from .document import Document
  from .filters import FilterOrBool, to_filter
label_desc: Use image node_id 1 to create a new ValidationError object from inherited base classes: Exception with example: obj = ValidationError(cursor_position, message)