You are here: Configuration > Common Configuration > Exceptions On Not Storable Objects

Exceptions On Not Storable Objects

When db4o cannot store a object, it will throw an exception. This is the default behavior. When you disable this object, db4o will silently ignore objects which cannot be stored instead of throwing an exception.

EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration();
configuration.common().exceptionsOnNotStorable(false);
CommonConfigurationExamples.java: Disable exceptions on not storable objects