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;
long code;
/**
*
* Getter for the field code
.
*
*
* @return a int.
*/
public long 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(long 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(long code, String message) {
super(message);
this.code = code;
}
}