/** * Set generic error location. * * @throws NullPointerException if {@code location} is {@code null}. */ public void setLocation(String location) { errorElement.setLocation(location); }
/** * Set XPath-based error location. * * <p>This must be a valid XPath expression sibling to the atom:entry * element (or the atom:feed element if we are not in an entry). * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setXpathLocation(String location) { return setLocation(location, LocationType.XPATH); }
/** * Set generic error location. * * @throws NullPointerException if {@code location} is {@code null}. */ public void setLocation(String location) { errorElement.setLocation(location); }
/** * Set XPath-based error location. * * <p>This must be a valid XPath expression sibling to the atom:entry * element (or the atom:feed element if we are not in an entry). * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setXpathLocation(String location) { return setLocation(location, LocationType.XPATH); }
/** * Set a generic error location, using {@link ErrorContent.LocationType#OTHER} * as the location type. * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setLocation(String location) { return setLocation(location, LocationType.OTHER); }
@Override public void processEndElement() { currentException.errorElement.setLocation(value, locationType); } }
/** * Set generic error location. * * @throws NullPointerException if {@code location} is {@code null}. */ public void setLocation(String location) { errorElement.setLocation(location); }
@Override public void processEndElement() { currentException.errorElement.setLocation(value, locationType); } }
/** * Set header name for an error in a header. * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setHeaderLocation(String location) { return setLocation(location, LocationType.HEADER); }
/** * Set header name for an error in a header. * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setHeaderLocation(String location) { return setLocation(location, LocationType.HEADER); }
/** * Set a generic error location, using {@link ErrorContent.LocationType#OTHER} * as the location type. * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setLocation(String location) { return setLocation(location, LocationType.OTHER); }
@Override public void processEndElement() { currentException.errorElement.setLocation(value, locationType); } }
/** * Set XPath-based error location. * * <p>This must be a valid XPath expression sibling to the atom:entry * element (or the atom:feed element if we are not in an entry). * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setXpathLocation(String location) { return setLocation(location, LocationType.XPATH); }
/** * Set header name for an error in a header. * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setHeaderLocation(String location) { return setLocation(location, LocationType.HEADER); }
/** * Set a generic error location, using {@link ErrorContent.LocationType#OTHER} * as the location type. * * @throws NullPointerException if {@code location} is {@code null}. */ public ErrorElement setLocation(String location) { return setLocation(location, LocationType.OTHER); }