All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.leeonky.dal.runtime.ElementAccessException Maven / Gradle / Ivy

package com.github.leeonky.dal.runtime;

public class ElementAccessException extends java.lang.RuntimeException {
    private final int index;
    private final PropertyAccessException exception;

    public ElementAccessException(int index, PropertyAccessException exception) {
        this.index = index;
        this.exception = exception;
    }

    public RuntimeException toDalError(int position) {
        return exception.toDalError(String.format("Mapping element[%d]:\n", index), position);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy