示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @POST @Path(PATH_GRAPHDB_EXTENSION_METHOD) public javax.ws.rs.core.Response invokeGraphDatabaseExtension(@PathParam("name") String name, @PathParam("method") String method, String data)
        public virtual Response InvokeGraphDatabaseExtension(string name, string method, string data)
        {
            try
            {
                return(_output.ok(this.InvokeGraphDatabaseExtension(name, method, _input.readParameterList(data))));
            }
            catch (BadInputException e)
            {
                return(_output.badRequest(e));
            }
            catch (PluginLookupException e)
            {
                return(_output.notFound(e));
            }
            catch (BadPluginInvocationException e)
            {
                return(_output.badRequest(e.InnerException));
            }
            catch (SyntaxException e)
            {
                return(_output.badRequest(e.InnerException));
            }
            catch (PluginInvocationFailureException e)
            {
                return(_output.serverError(e.InnerException));
            }
            catch (Exception e)
            {
                return(_output.serverError(e));
            }
        }