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.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.ExceptionsOnNotStorable = false;
CommonConfigurationExamples.cs: Disable exceptions on not storable objects
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.ExceptionsOnNotStorable = False
CommonConfigurationExamples.vb: Disable exceptions on not storable objects