{"record":{"id":"a9aa42c660368c59","repo":"quarkusio/quarkus","slug":"oups","errorCode":null,"errorMessage":"Oups!","messagePattern":"Oups!","errorType":"exception","errorClass":"RuntimeException","httpStatus":500,"severity":"error","filePath":"integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java","lineNumber":46,"sourceCode":"    @Consumes(MediaType.APPLICATION_OCTET_STREAM)\n    public byte[] hello(byte[] bytes) {\n        if (bytes[0] != 0 || bytes[1] != 1 || bytes[2] != 2 || bytes[3] != 3) {\n            throw new RuntimeException(\"bad input\");\n        }\n        byte[] rtn = { 4, 5, 6 };\n        return rtn;\n    }\n\n    @POST\n    @Path(\"empty\")\n    public void empty() {\n\n    }\n\n    @GET\n    @Path(\"error\")\n    public void error() {\n        throw new RuntimeException(\"Oups!\");\n    }\n\n}\n","sourceCodeStart":28,"sourceCodeEnd":50,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java#L28-L50","documentation":"Deliberate test-triggered exception in a google-cloud-functions-http integration-test resource: the /error endpoint unconditionally throws this RuntimeException to exercise error-path handling in the functions HTTP binding. It fires only when that test endpoint is invoked.","triggerScenarios":"Thrown at integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java:46 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call the /error endpoint unless testing error propagation","Expect a 500/error response from the test harness"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}