Hi Mark,
thanks again.
In the meanwhile I've found another solution to my problem. I use the
function "documentExists" from the ArangoCollection object.
So I don't have to evaluate the error numbers anymore to find exceptions
thrown for duplicate document-/edge-keys.
Best regards
Christoph
Am Donnerstag, 1. Dezember 2016 09:35:38 UTC+1 schrieb mpv1989:
>
> Yes.
> But I added this to my todo list. Maybe I can implement something for the
> next release.
>
> Best
> Mark
>
> Am Mittwoch, 30. November 2016 11:42:54 UTC+1 schrieb Christoph Engel:
>>
>> Hi Mark,
>>
>> thanks for your reply. Does that mean I have to parse the error message
>> string to get the code?
>>
>> best regards
>> Christoph
>>
>> Am Mittwoch, 30. November 2016 09:18:22 UTC+1 schrieb mpv1989:
>>>
>>> Hi Christoph,
>>>
>>> in version 4.1.2 every information of the error is part of the
>>> exception.erroMessage.
>>> The format is:
>>> "Response: {errorCode}, Error: {errorNumber} - {errorMessage}"
>>>
>>> If no error occurs but the responseCode is 300 or above the errorMessage
>>> only contains:
>>> "Response Code: {responseCode}"
>>>
>>>
>>> Best
>>> Mark
>>>
>>>
>>> Am Dienstag, 29. November 2016 16:30:48 UTC+1 schrieb Christoph Engel:
>>>>
>>>> Hi,
>>>>
>>>> I've updated the ArangoDB-driver in my Java project from version 3.0 to
>>>> version 4.1.2. With version 3.0 of the ArangoDB-driver I could get an
>>>> error
>>>> number from the ArangoException-Object.
>>>> ...
>>>> catch (ArangoException e)
>>>> {
>>>> if(e.getErrorNumber() == ...)
>>>> {
>>>> ...
>>>> }
>>>> }
>>>> I've searched a lot of time but I couldn't find something similar for
>>>> the version 4.1.2.
>>>> Is there a chance to get these error numbers (especially for duplicate
>>>> document-/edge-keys) from the new ArangoDB-driver? I need it for my own
>>>> error handling within my project.
>>>>
>>>> best regards
>>>> Christoph
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.