class_docstr: Error raised by :meth:`.Validator.validate`.
  
  :param cursor_position: The cursor position where the error occured.
  :param message: Text.
class_docstr_tok: ["Error","raised","by",":","meth",":","`",".Validator.validate","`",".",":","param","cursor_position",":","The","cursor","position","where","the","error","occured",".",":","param","message",":","Text","."]
code: def __init__(self, cursor_position=0, message=""):
      super(ValidationError, self).__init__(message)
      self.cursor_position = cursor_position
      self.message = message
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/validation.py
imports: from __future__ import unicode_literals
  from .filters import to_simple_filter
  from abc import ABCMeta, abstractmethod
  from six import with_metaclass
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)