Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 135 days
Matthias Schertler (innovaphone) Thursday, 17 June 2021, 05:30 PM in response to Matthias Schertler (innovaphone)
Re: [JS SDK] return a Error on failed database actions
Hi Rico,

for the next SDK build we changed the interface of the onerror callback according to your request.

Actually we added three parameters:
  • error
  • errorText
  • dbErrorCode - this would be the one you are looking for
Please see the updated documentation for details:
https://sdk.innovaphone.com/13r2/doc/javascript/Database.htm#DatabaseOperation_onerror

Note: you need to wait for the next beta build to try it.

BR and thanks again!
Matthias
← You can define your color theme preference here