예제 #1
0
 /**
  * Get an exception reporting an unexpected XML element.
  *
  * @param reader the stream reader
  * @return the exception
  */
 public static XMLStreamException unexpectedElement(
     final XMLExtendedStreamReader reader, Set<String> possible) {
   return ControllerLogger.ROOT_LOGGER.unexpectedElement(
       reader.getName(), asStringList(possible), reader.getLocation());
 }
예제 #2
0
 /**
  * Get an exception reporting an unexpected XML element.
  *
  * @param reader the stream reader
  * @return the exception
  */
 public static XMLStreamException unexpectedElement(final XMLExtendedStreamReader reader) {
   return ControllerLogger.ROOT_LOGGER.unexpectedElement(reader.getName(), reader.getLocation());
 }