javaVertXServer.apiException.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-swagger-codegen Show documentation
Show all versions of vertx-swagger-codegen Show documentation
A Swagger codegen plugin for Vert.X. Based on the Swagger Router.
The newest version!
package {{package}};
{{#imports}}import {{import}};
{{/imports}}
public final class {{classname}}Exception extends MainApiException {
public {{classname}}Exception(int statusCode, String statusMessage) {
super(statusCode, statusMessage);
}
{{#operations}}{{#operation}}{{#responses}}{{^isDefault}}public static {{classname}}Exception {{classname}}_{{{operationId}}}_{{{code}}}_createException() {
return new {{classname}}Exception({{{code}}}, "{{{message}}}");
}
{{/isDefault}}{{/responses}}{{/operation}}{{/operations}}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy