Class ReaderException

All Implemented Interfaces:
Serializable

public class ReaderException extends YamlEngineException
Indicate invalid input stream
See Also:
  • Field Details

    • name

      private final String name
    • codePoint

      private final int codePoint
    • position

      private final int position
  • Constructor Details

    • ReaderException

      public ReaderException(String name, int position, int codePoint, String message)
      Create
      Parameters:
      name - - the name of the reader
      position - - the position from the beginning of the stream
      codePoint - - the invalid character
      message - - the problem
  • Method Details

    • getName

      public String getName()
      getter
      Returns:
      the name of the reader
    • getCodePoint

      public int getCodePoint()
      getter
      Returns:
      the invalid char
    • getPosition

      public int getPosition()
      getter
      Returns:
      position of the error
    • toString

      public String toString()
      Overrides:
      toString in class Throwable