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.
189190191192193194195196197
{ return session.getCluster().getMetadata().getKeyspace(schema); } }); if (keyspaceMetadata == null) { throw new SchemaNotFoundException(schema); } return keyspaceMetadata; }
492493494495496497498499
{ try { return metastore.getDatabase(database); } catch (NoSuchObjectException e) { throw new SchemaNotFoundException(database); } }
81828384858687
} if (schema.equals(TEST_SCHEMA)) { return ImmutableList.of(TEST_TABLE); } throw new SchemaNotFoundException(schema); }
949596979899100101
if (throwException) { throw new IllegalStateException(); } if (!schema.equals(TEST_SCHEMA)) { throw new SchemaNotFoundException(schema); } }
714715716717718719720721
604605606607608609610611
949596979899100101102
private KeyspaceMetadata getCheckedKeyspaceMetadata(String schema) throws SchemaNotFoundException { KeyspaceMetadata meta = session.getCluster().getMetadata().getKeyspace(schema); if (meta == null) { throw new SchemaNotFoundException(schema); } return meta; }