Class ServerError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.styra.opa.openapi.models.errors.ServerError
-
- All Implemented Interfaces:
java.io.Serializable
public class ServerError extends java.lang.RuntimeException
ServerError - Server Error- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerError.Builder
-
Constructor Summary
Constructors Constructor Description ServerError(java.lang.String code, java.lang.String message)
ServerError(java.lang.String code, java.lang.String message, java.util.Optional<? extends java.util.List<ServerErrorErrors>> errors, java.util.Optional<java.lang.String> decisionId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerError.Builder
builder()
java.lang.String
code()
java.util.Optional<java.lang.String>
decisionId()
boolean
equals(java.lang.Object o)
java.util.Optional<java.util.List<ServerErrorErrors>>
errors()
int
hashCode()
java.lang.String
message()
java.lang.String
toString()
ServerError
withCode(java.lang.String code)
ServerError
withDecisionId(java.lang.String decisionId)
ServerError
withDecisionId(java.util.Optional<java.lang.String> decisionId)
ServerError
withErrors(java.util.List<ServerErrorErrors> errors)
ServerError
withErrors(java.util.Optional<? extends java.util.List<ServerErrorErrors>> errors)
ServerError
withMessage(java.lang.String message)
-
-
-
Constructor Detail
-
ServerError
public ServerError(java.lang.String code, java.lang.String message, java.util.Optional<? extends java.util.List<ServerErrorErrors>> errors, java.util.Optional<java.lang.String> decisionId)
-
ServerError
public ServerError(java.lang.String code, java.lang.String message)
-
-
Method Detail
-
code
public java.lang.String code()
-
message
public java.lang.String message()
-
errors
public java.util.Optional<java.util.List<ServerErrorErrors>> errors()
-
decisionId
public java.util.Optional<java.lang.String> decisionId()
-
builder
public static final ServerError.Builder builder()
-
withCode
public ServerError withCode(java.lang.String code)
-
withMessage
public ServerError withMessage(java.lang.String message)
-
withErrors
public ServerError withErrors(java.util.List<ServerErrorErrors> errors)
-
withErrors
public ServerError withErrors(java.util.Optional<? extends java.util.List<ServerErrorErrors>> errors)
-
withDecisionId
public ServerError withDecisionId(java.lang.String decisionId)
-
withDecisionId
public ServerError withDecisionId(java.util.Optional<java.lang.String> decisionId)
-
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
-
-