Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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() {
Copy link
Member

@wing328 wing328 Aug 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if you can add the proper javadoc as well.

Copy link
Contributor Author

@Xendar Xendar Aug 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing!
Let me know if you want me to change the wording :)

return code;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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;
}

}
Original file line number Diff line number Diff line change
@@ -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{
public class ApiException extends Exception {

/** The HTTP status code. */
private int code;
public ApiException (int code, String msg) {

/**
* 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