ftl.builtin.CatchRequest Maven / Gradle / Ivy
package ftl.builtin;
import java.lang.String;
import org.jetbrains.annotations.NotNull;
import xyz.block.ftl.GeneratedRef;
@GeneratedRef(
name = "CatchRequest",
module = "builtin"
)
public class CatchRequest {
private @NotNull Req request;
private @NotNull String error;
public CatchRequest() {
}
public CatchRequest(@NotNull String error, @NotNull Req request) {
this.error = error;
this.request = request;
}
public CatchRequest setRequest(@NotNull Req request) {
this.request = request;
return this;
}
public @NotNull Req getRequest() {
return request;
}
public CatchRequest setError(@NotNull String error) {
this.error = error;
return this;
}
public @NotNull String getError() {
return error;
}
}