Class ReaderException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int codePoint  
      private java.lang.String name  
      private int position  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReaderException​(java.lang.String name, int position, int codePoint, java.lang.String message)
      Create
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCodePoint()
      getter
      java.lang.String getName()
      getter
      int getPosition()
      getter
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • codePoint

        private final int codePoint
      • position

        private final int position
    • Constructor Detail

      • ReaderException

        public ReaderException​(java.lang.String name,
                               int position,
                               int codePoint,
                               java.lang.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 Detail

      • getName

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable