This commit is contained in:
Daniella / Tove 2022-07-01 19:52:30 +02:00
parent bac7809f3c
commit a5e8126976

View file

@ -1,9 +1,5 @@
package de.tudbut.tryumph.config; package de.tudbut.tryumph.config;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import tudbut.parsing.TCN; import tudbut.parsing.TCN;
import tudbut.parsing.JSON; import tudbut.parsing.JSON;
import de.tudbut.async.*; import de.tudbut.async.*;
@ -32,9 +28,12 @@ public class RequestCatcherConfig {
}); });
} }
private Task<Void> build() { private Task<RequestCatcherConfig> build() {
return t((res, rej) -> { return t((res, rej) -> {
res.call(null); if(this.name == null || this.configHolder == null) {
rej.call(new IllegalStateException("RequestCatcherConfig is not correctly initialized but was used"));
}
res.call(this);
}); });
} }