quarkusio/quarkus · error · RuntimeException

Oups!

Error message

Oups!

What it means

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.

Source

Thrown at integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java:46

    @Consumes(MediaType.APPLICATION_OCTET_STREAM)
    public byte[] hello(byte[] bytes) {
        if (bytes[0] != 0 || bytes[1] != 1 || bytes[2] != 2 || bytes[3] != 3) {
            throw new RuntimeException("bad input");
        }
        byte[] rtn = { 4, 5, 6 };
        return rtn;
    }

    @POST
    @Path("empty")
    public void empty() {

    }

    @GET
    @Path("error")
    public void error() {
        throw new RuntimeException("Oups!");
    }

}

View on GitHub (pinned to e1c734241f)

Solutions

  1. Do not call the /error endpoint unless testing error propagation
  2. Expect a 500/error response from the test harness
Defensive patterns

Strategy: validation

When it happens

Trigger: 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.

Common situations: See trigger scenarios.


AI-assisted analysis of quarkusio/quarkus@e1c734241f (2026-09-05). Data as JSON: /api/errors/a9aa42c660368c59. Report an issue: GitHub.