253254255256257258259
public ErrorsException toException() { return new ErrorsException(this); } public MappingException toMappingException() { return new MappingException(getMessages()); }
369370371372373374375
return addMessage("'source' cannot be used outside of a map statement."); } void throwMappingExceptionIfErrorsExist() { if (hasErrors()) throw new MappingException(getMessages()); }