Class ErrorModel
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ErrorModel
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ErrorModel
extends Object
implements Serializable
ErrorModel is used in remote connections with podman
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ErrorModelCreate an instance of ErrorModel given an JSON stringgetCause()API root cause formatted for automated parsinghuman error message, formatted for a human to read@Min(400L) LongHTTP response code minimum: 400inthashCode()voidvoidsetMessage(String message) voidsetResponse(Long response) toJson()Convert an instance of ErrorModel to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CAUSE
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_RESPONSE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ErrorModel
public ErrorModel()
-
-
Method Details
-
cause
-
getCause
API root cause formatted for automated parsing- Returns:
- cause
-
setCause
-
message
-
getMessage
human error message, formatted for a human to read- Returns:
- message
-
setMessage
-
response
-
getResponse
HTTP response code minimum: 400- Returns:
- response
-
setResponse
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ErrorModel
-
fromJson
Create an instance of ErrorModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ErrorModel
- Throws:
IOException- if the JSON string is invalid with respect to ErrorModel
-
toJson
Convert an instance of ErrorModel to an JSON string- Returns:
- JSON string
-