Skip to content

Commit 957b662

Browse files
committed
OpenUI5 Documentation Update 01.02.2024
1 parent a34dd7a commit 957b662

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/Creating_an_Entity_c9723f8.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ If you have called [`ODataListBinding#create`](https://sdk.openui5.org/api/sap.u
5353
oContext.created().then(function () {
5454
// sales order successfully created
5555
}, function (oError) {
56-
// handle rejection of entity creation; if oError.canceled === true then the transient entity has been deleted
56+
// handle rejection of entity creation; if oError.canceled === true then the transient entity has been deleted
57+
if (!oError.canceled) {
58+
throw oError; // unexpected error
59+
}
5760
});
5861
},
5962

0 commit comments

Comments
 (0)