Class UnhealthyServer
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.styra.opa.openapi.models.errors.UnhealthyServer
-
- All Implemented Interfaces:
java.io.Serializable
public class UnhealthyServer extends java.lang.RuntimeException
UnhealthyServer - OPA service is not healthy. If the bundles option is specified this can mean any of the configured bundles have not yet been activated. If the plugins option is specified then at least one plugin is in a non-OK state.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnhealthyServer.Builder
-
Constructor Summary
Constructors Constructor Description UnhealthyServer()
UnhealthyServer(java.util.Optional<java.lang.String> code)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnhealthyServer.Builder
builder()
java.util.Optional<java.lang.String>
code()
boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
UnhealthyServer
withCode(java.lang.String code)
UnhealthyServer
withCode(java.util.Optional<java.lang.String> code)
-
-
-
Method Detail
-
code
public java.util.Optional<java.lang.String> code()
-
builder
public static final UnhealthyServer.Builder builder()
-
withCode
public UnhealthyServer withCode(java.lang.String code)
-
withCode
public UnhealthyServer withCode(java.util.Optional<java.lang.String> code)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-