org.tarantool.TarantoolException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connector Show documentation
Show all versions of connector Show documentation
Tarantool client for java
package org.tarantool;
/**
* A remote server error with error code and message.
*
* @author dgreen
* @version $Id: $
*/
public class TarantoolException extends RuntimeException {
private static final long serialVersionUID = 1L;
int code;
/**
*
* Getter for the field code.
*
*
* @return a int.
*/
public int getCode() {
return code;
}
/**
*
* Constructor for TarantoolException.
*
*
* @param code
* a int.
* @param message
* a {@link java.lang.String} object.
* @param cause
* a {@link java.lang.Throwable} object.
*/
public TarantoolException(int code, String message, Throwable cause) {
super(message, cause);
this.code = code;
}
/**
*
* Constructor for TarantoolException.
*
*
* @param code
* a int.
* @param message
* a {@link java.lang.String} object.
*/
public TarantoolException(int code, String message) {
super(message);
this.code = code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy