Class BulkOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nl.datasteel.crudcraft.runtime.exception.CrudCraftRuntimeException
nl.datasteel.crudcraft.runtime.exception.BulkOperationException
- All Implemented Interfaces:
Serializable
Represents partial or complete failures in bulk operations.
Contains list of individual item-level exceptions.
Results in 207 Multi-Status or 500 by default, handle via ControllerAdvice.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBulkOperationException(String message, List<Throwable> itemExceptions) Constructs a BulkOperationException with a message and item exceptions. -
Method Summary
Modifier and TypeMethodDescriptionReturns an immutable list of item exceptions.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BulkOperationException
Constructs a BulkOperationException with a message and item exceptions.- Parameters:
message- the detail messageitemExceptions- list of exceptions for each item in the bulk operation
-
-
Method Details
-
getItemExceptions
Returns an immutable list of item exceptions.
-