Exception thrown to indicate that there was a problem finding a particular version of a schema.
@since 0.9.0
Exception thrown to indicate that there is a problem finding a particular version of a schema.
226227228229230231232233234
return entityMappers.get(resultVersion).mapToEntity(result); } else { String msg = "Could not find schema for " + tableName + ", " + entityName + ", with version " + resultVersion; LOG.error(msg); throw new SchemaNotFoundException(msg); } } }
128129130131132133134135136137
if (greatestVersionedSchema == null) { String msg = "No schema versions for " + managedSchema.getTable() + ", " + managedSchema.getName(); LOG.error(msg); throw new SchemaNotFoundException(msg); } return greatestVersionedSchema; }
154155156157158159160161
return schemaParser.parseEntitySchema(schema); } else { String msg = "Could not find managed schema for " + tableName + ", " + entityName + ", and version " + Integer.toString(version); LOG.error(msg); throw new SchemaNotFoundException(msg); } }
469470471472473474475476477478
refreshManagedSchemaCache(tableName, entityName); managedSchema = getManagedSchemaFromSchemaMap(tableName, entityName); if (managedSchema == null) { String msg = "Could not find managed schemas for " + tableName + ", " + entityName; throw new SchemaNotFoundException(msg); } } return managedSchema; }
83848586878889
} if (schema.equals(TEST_SCHEMA)) { return ImmutableList.of(TEST_TABLE); } throw new SchemaNotFoundException(schema); }
96979899100101102103
if (throwException) { throw new IllegalStateException(); } if (!schema.equals(TEST_SCHEMA)) { throw new SchemaNotFoundException(schema); } }
603604605606607608609610
{ try { return metastore.getDatabase(database); } catch (NoSuchObjectException e) { throw new SchemaNotFoundException(database); } }
189190191192193194195196197
{ return session.getCluster().getMetadata().getKeyspace(schema); } }); if (keyspaceMetadata == null) { throw new SchemaNotFoundException(schema); } return keyspaceMetadata; }
111112113114115116117118119
private KeyspaceMetadata getCheckedKeyspaceMetadata(String schema) throws SchemaNotFoundException { KeyspaceMetadata meta = session.getCluster().getMetadata().getKeyspace(schema); if (meta == null) { throw new SchemaNotFoundException(schema); } return meta; }
558559560561562563564565