Skip to content

Commit 6b2c63d

Browse files
committed
throws exception
1 parent 11d33d1 commit 6b2c63d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

http-generator-nima/src/main/java/io/avaje/http/generator/helidon/nima/ControllerMethodWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void writeRule() {
4141
}
4242

4343
void writeHandler(boolean requestScoped) {
44-
writer.append(" private void _%s(ServerRequest req, ServerResponse res) {", method.simpleName()).eol();
44+
writer.append(" private void _%s(ServerRequest req, ServerResponse res) throws Exception {", method.simpleName()).eol();
4545
final var bodyType = method.bodyType();
4646
if (bodyType != null) {
4747

tests/test-nima-jsonb/src/main/java/org/example/TestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ String enumQueryImplied(String s, @QueryParam ServerType type) {
5757

5858
@InstrumentServerContext
5959
@Get(value = "/inputStream")
60-
InputStream stream(InputStream stream) {
60+
InputStream stream(InputStream stream) throws Exception {
6161
return stream;
6262
}
6363

0 commit comments

Comments
 (0)