Class ErrorModel
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ErrorModel
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class ErrorModel
extends Object
ErrorModel is used in remote connections with podman
-
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 readHTTP response code minimum: 400inthashCode()voidvoidsetMessage(String message) voidsetResponse(Long response) toJson()Convert an instance of ErrorModel to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element 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
-