Class LocationCodePointException

All Implemented Interfaces:
Serializable

public class LocationCodePointException extends RuntimeException
Indicates that an unexpected or illegal code point has been found in an input document.
See Also:
  • Constructor Details

    • LocationCodePointException

      public LocationCodePointException(@Opt @Opt Location<?> location, int codePoint)
      Creates a new instance.
      Parameters:
      location - the location of the offending code point in the input document, or null if not available
      codePoint - the offending code point
  • Method Details

    • getLocation

      @Opt public @Opt Location<?> getLocation()
      Returns the location of the offending code point in the input document.
      Returns:
      the location of the offending code point in the input document, or null if not available
    • getCodePoint

      public int getCodePoint()
      Returns the offending code point.
      Returns:
      the offending code point