Class ServerError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.styra.opa.openapi.models.errors.ServerError
- All Implemented Interfaces:
Serializable
ServerError
Server Error
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionServerError
(String code, String message) ServerError
(String code, String message, Optional<? extends List<ServerErrorErrors>> errors, Optional<String> decisionId) -
Method Summary
Modifier and TypeMethodDescriptionstatic final ServerError.Builder
builder()
code()
boolean
errors()
int
hashCode()
message()
toString()
withDecisionId
(String decisionId) withDecisionId
(Optional<String> decisionId) withErrors
(List<ServerErrorErrors> errors) withErrors
(Optional<? extends List<ServerErrorErrors>> errors) withMessage
(String message) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ServerError
-
ServerError
-
-
Method Details
-
code
-
message
-
getMessage
- Overrides:
getMessage
in classThrowable
-
errors
-
decisionId
-
builder
-
withCode
-
withMessage
-
withErrors
-
withErrors
-
withDecisionId
-
withDecisionId
-
equals
-
hashCode
public int hashCode() -
toString
-