-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathException.java
More file actions
54 lines (41 loc) · 1.22 KB
/
Exception.java
File metadata and controls
54 lines (41 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.rethinkdb.gen.exc;
import org.jetbrains.annotations.Nullable;
import com.rethinkdb.ast.ReqlAst;
import com.rethinkdb.model.Backtrace;
public class ${camel(classname)} extends ${camel(superclass)} {
@Nullable Backtrace backtrace;
@Nullable ReqlAst term;
public ${camel(classname)}() {
}
public ${camel(classname)}(String message) {
super(message);
}
public ${camel(classname)}(String format, Object... args) {
super(String.format(format, args));
}
public ${camel(classname)}(String message, Throwable cause) {
super(message, cause);
}
public ${camel(classname)}(Throwable cause) {
super(cause);
}
public ${camel(classname)}(String msg, ReqlAst term, Backtrace bt) {
super(msg);
this.backtrace = bt;
this.term = term;
}
public @Nullable Backtrace getBacktrace() {
return backtrace;
}
public ${camel(classname)} setBacktrace(Backtrace backtrace) {
this.backtrace = backtrace;
return this;
}
public @Nullable ReqlAst getTerm() {
return this.term;
}
public ${camel(classname)} setTerm(ReqlAst term) {
this.term = term;
return this;
}
}