forked from loafle/openapi-generator-original
This commit is contained in:
parent
f1989cc70f
commit
930c622d11
@ -1,10 +1,32 @@
|
||||
package {{apiPackage}};
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
{{>generatedAnnotation}}
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package {{apiPackage}};
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
{{>generatedAnnotation}}
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package {{apiPackage}};
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
{{>generatedAnnotation}}
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package {{apiPackage}};
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
{{>generatedAnnotation}}
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaMSF4JServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,10 +1,32 @@
|
||||
package org.openapitools.api;
|
||||
|
||||
/**
|
||||
* The exception that can be used to store the HTTP status code returned by an API response.
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
|
||||
public class ApiException extends Exception {
|
||||
|
||||
/** The HTTP status code. */
|
||||
private int code;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param code The HTTP status code.
|
||||
* @param msg The error message.
|
||||
*/
|
||||
public ApiException(int code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return The HTTP status code.
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user