Skip to content

Fail on Warning #235

@iamacup

Description

@iamacup

Hey - is there any way to configure the driver to fail (throw exception) when a warning was generated by ArangoDB? When i print_r the cursor object, i have this in there:

[data:ArangoDBClient\Cursor:private] => Array
        (
            [result] => Array
                (
                )

            [hasMore] => 
            [count] => 0
            [cached] => 
            [extra] => Array
                (
                    [stats] => Array
                        (
                            [writesExecuted] => 0
                            [writesIgnored] => 0
                            [scannedFull] => 0
                            [scannedIndex] => 8
                            [filtered] => 4
                            [httpRequests] => 0
                            [executionTime] => 0.00053644180297852
                        )

                    [warnings] => Array
                        (
                            [0] => Array
                                (
                                    [code] => 1563
                                    [message] => in function 'INTERSECTION()': array expected
                                )

                        )

                )

            [error] => 
            [code] => 201
        )

Current behavior: no exception thrown
Desired behavior: exception thrown

Is this a configuration option that i can't see in the docs or is there some other way i can achieve this behavior?

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions