All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rethinkdb.gen.exc.ReqlRuntimeError Maven / Gradle / Ivy

There is a newer version: 2.3.2.20160729
Show newest 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 ReqlRuntimeError extends ReqlError {

    Optional backtrace = Optional.empty();
    Optional term = Optional.empty();

    public ReqlRuntimeError() {
    }

    public ReqlRuntimeError(String message) {
        super(message);
    }

    public ReqlRuntimeError(String format, Object... args) {
        super(String.format(format, args));
    }

    public ReqlRuntimeError(String message, Throwable cause) {
        super(message, cause);
    }

    public ReqlRuntimeError(Throwable cause) {
        super(cause);
    }

    public ReqlRuntimeError(String msg, ReqlAst term, Backtrace bt) {
        super(msg);
        this.backtrace = Optional.ofNullable(bt);
        this.term = Optional.ofNullable(term);
    }

    public ReqlRuntimeError setBacktrace(Backtrace backtrace) {
        this.backtrace = Optional.ofNullable(backtrace);
        return this;
    }

    public Optional getBacktrace() {
        return backtrace;
    }

    public ReqlRuntimeError setTerm(ReqlAst term) {
        this.term = Optional.ofNullable(term);
        return this;
    }

    public Optional getTerm() {
        return this.term;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy