
io.permazen.core.SchemaMismatchException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-core Show documentation
Show all versions of permazen-core Show documentation
Permazen core API classes which provide objects, fields, indexes, queries, and schema management on top of a key/value store.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.core;
import io.permazen.schema.SchemaId;
/**
* Thrown by {@link Database#createTransaction} when the expected schema does not match
* and of the schemas already recorded in the database.
*/
@SuppressWarnings("serial")
public class SchemaMismatchException extends InvalidSchemaException {
private final SchemaId schemaId;
public SchemaMismatchException(SchemaId schemaId, String message) {
super(message);
this.schemaId = schemaId;
}
/**
* Get the ID of the schema that failed to match.
*
* @return mismatched schema ID
*/
public SchemaId getSchemaId() {
return this.schemaId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy