You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When executing an Operation which is not supported, a java.lang.UnsupportedOperationException is thrown. This class is unrelated to the uk.gov.gchq.gaffer.operation.OperationException class which is caught by the GafferPopGraph catch clause.
This means that UnsupportedOperationException is not caught and handled as intended. The handling code could also be improved (e.g. log the error instead of just throwing).
To Reproduce
Steps to reproduce the behaviour:
Add breakpoint in the above catch.
Execute an Operation which is not supported by the configured store.
Catch is not invoked as it should be.
Expected behaviour
All kinds of Exceptions encountered when executing Operation(s) should be handled.
Additional context
The snippet above is not tested. Tests should be added for this to ensure correct behaviour.
The text was updated successfully, but these errors were encountered:
Describe the bug
When executing an Operation which is not supported, a
java.lang.UnsupportedOperationException
is thrown. This class is unrelated to theuk.gov.gchq.gaffer.operation.OperationException
class which is caught by theGafferPopGraph
catch clause.These are the relevant lines:
Gaffer/library/tinkerpop/src/main/java/uk/gov/gchq/gaffer/tinkerpop/GafferPopGraph.java
Lines 518 to 523 in 7b5e9ff
This means that
UnsupportedOperationException
is not caught and handled as intended. The handling code could also be improved (e.g. log the error instead of just throwing).To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
All kinds of Exceptions encountered when executing Operation(s) should be handled.
Additional context
The snippet above is not tested. Tests should be added for this to ensure correct behaviour.
The text was updated successfully, but these errors were encountered: