com.rethinkdb.gen.exc.ReqlOpFailedError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qj-rethinkdb-driver Show documentation
Show all versions of qj-rethinkdb-driver Show documentation
Java driver for RethinkDB (Modified from Official version)
// Autogenerated by metajava.py.
// Do not edit this file directly.
// The template for this file is located at:
// ../../../../../../../../templates/Exception.java
package com.rethinkdb.gen.exc;
import java.util.Optional;
import com.rethinkdb.ast.ReqlAst;
import com.rethinkdb.model.Backtrace;
public class ReqlOpFailedError extends ReqlAvailabilityError {
Optional backtrace = Optional.empty();
Optional term = Optional.empty();
public ReqlOpFailedError() {
}
public ReqlOpFailedError(String message) {
super(message);
}
public ReqlOpFailedError(String format, Object... args) {
super(String.format(format, args));
}
public ReqlOpFailedError(String message, Throwable cause) {
super(message, cause);
}
public ReqlOpFailedError(Throwable cause) {
super(cause);
}
public ReqlOpFailedError(String msg, ReqlAst term, Backtrace bt) {
super(msg);
this.backtrace = Optional.ofNullable(bt);
this.term = Optional.ofNullable(term);
}
public ReqlOpFailedError setBacktrace(Backtrace backtrace) {
this.backtrace = Optional.ofNullable(backtrace);
return this;
}
public Optional getBacktrace() {
return backtrace;
}
public ReqlOpFailedError setTerm(ReqlAst term) {
this.term = Optional.ofNullable(term);
return this;
}
public Optional getTerm() {
return this.term;
}
}