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