Skip to content

Commit b5ad1d7

Browse files
DbFullException: clarify which transaction, hint at max size default
In response to #1199
1 parent 83c768d commit b5ad1d7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

objectbox-java/src/main/java/io/objectbox/exception/DbFullException.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 ObjectBox Ltd. All rights reserved.
2+
* Copyright 2017-2024 ObjectBox Ltd. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,8 +17,11 @@
1717
package io.objectbox.exception;
1818

1919
/**
20-
* Thrown when applying a transaction (e.g. putting an object) would exceed the
21-
* {@link io.objectbox.BoxStoreBuilder#maxSizeInKByte(long) maxSizeInKByte} configured for the store.
20+
* Thrown when applying a database operation would exceed the (default)
21+
* {@link io.objectbox.BoxStoreBuilder#maxSizeInKByte(long) maxSizeInKByte} configured for the Store.
22+
* <p>
23+
* This can occur for operations like when an Object is {@link io.objectbox.Box#put(Object) put}, at the point when the
24+
* (internal) transaction is committed. Or when the Store is opened with a max size smaller than the existing database.
2225
*/
2326
public class DbFullException extends DbException {
2427
public DbFullException(String message) {

0 commit comments

Comments
 (0)