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

io.castled.schema.IncompatibleValueException Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.castled.schema;

import io.castled.exceptions.CastledException;
import io.castled.schema.models.Schema;

public class IncompatibleValueException extends CastledException {

    private final Object value;
    private final Schema schema;

    public IncompatibleValueException(Object value, Schema schema) {
        super(String.format("Value %s incompatible with schema %s", value, schema.getType()));
        this.value = value;
        this.schema = schema;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy