mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
20 lines
504 B
Java
20 lines
504 B
Java
package io.floci.cli.http;
|
|
|
|
/**
|
|
* The server answered {@code /tls-cert} with 404: either TLS is off, or it is on and the
|
|
* certificate is still being generated ({@link #notYet()}), which is worth waiting for.
|
|
*/
|
|
public class TlsUnavailableException extends FlociException {
|
|
|
|
private final boolean notYet;
|
|
|
|
public TlsUnavailableException(String message, boolean notYet) {
|
|
super(message);
|
|
this.notYet = notYet;
|
|
}
|
|
|
|
public boolean notYet() {
|
|
return notYet;
|
|
}
|
|
}
|