
org.apache.iotdb.db.protocol.rest.ApiException Maven / Gradle / Ivy
package org.apache.iotdb.db.protocol.rest;
/**
* 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", date = "2024-04-19T16:43:24.870259+08:00[Asia/Shanghai]")
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;
}
@Override
public String toString() {
return "ApiException{" +
"code=" + code +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy