Class ScannerException

All Implemented Interfaces:
Serializable

public class ScannerException extends MarkedYamlEngineException
Exception thrown by the Scanner implementations in case of malformed input.
See Also:
  • Constructor Details

    • ScannerException

      public ScannerException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark)
      Constructs an instance.
      Parameters:
      context - Part of the input document in which vicinity the problem occurred.
      contextMark - Position of the context within the document.
      problem - Part of the input document that caused the problem.
      problemMark - Position of the problem within the document.
    • ScannerException

      public ScannerException(String problem, Optional<Mark> problemMark)
      Create
      Parameters:
      problem - - the issue
      problemMark - - the position of the issue