<xml> </xml>

db4o |

# Configuration.ExceptionsOnNotStorable Method

configures whether Exceptions are to be thrown, if objects can not be stored.

void ExceptionsOnNotStorable(
bool flag
);

#### Parameters

flag
  true to throw Exceptions if objects can not be stored.

#### Remarks

configures whether Exceptions are to be thrown, if objects can not be stored.
db4o requires the presence of a constructor that can be used to instantiate objects. If no default public constructor is present, all available constructors are tested, whether an instance of the class can be instantiated. Null is passed to all constructor parameters. The first constructor that is successfully tested will be used throughout the running db4o session. If an instance of the class can not be instantiated, the object will not be stored. By default, execution will continue without any message or error. This method can be used to configure db4o to throw an ObjectNotStorableException if an object can not be stored.
The default for this setting is false.

#### See Also

Configuration Interface | com.db4o.config Namespace