Package com.sap.ai.sdk.grounding.model
Class DetailsErrorResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.DetailsErrorResponse
DetailsErrorResponse
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DetailsErrorResponse. -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisDetailsErrorResponseinstance and return the same instance.static DetailsErrorResponsecreate()Create a newDetailsErrorResponseinstance.booleangetCode()Descriptive error code (not http status code)getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDetailsErrorResponse.Plaintext error descriptioninthashCode()Set the message of thisDetailsErrorResponseinstance and return the same instance.voidSet the code of thisDetailsErrorResponseinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDetailsErrorResponseinstance.voidsetMessage(String message) Set the message of thisDetailsErrorResponseinstance.toMap()Get the value of all properties of thisDetailsErrorResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
DetailsErrorResponse
protected DetailsErrorResponse()Default constructor for DetailsErrorResponse.
-
-
Method Details
-
code
Set the code of thisDetailsErrorResponseinstance and return the same instance.- Parameters:
code- Descriptive error code (not http status code)- Returns:
- The same instance of this
DetailsErrorResponseclass
-
getCode
Descriptive error code (not http status code)- Returns:
- code The code of this
DetailsErrorResponseinstance.
-
setCode
Set the code of thisDetailsErrorResponseinstance.- Parameters:
code- Descriptive error code (not http status code)
-
message
Set the message of thisDetailsErrorResponseinstance and return the same instance.- Parameters:
message- Plaintext error description- Returns:
- The same instance of this
DetailsErrorResponseclass
-
getMessage
Plaintext error description- Returns:
- message The message of this
DetailsErrorResponseinstance.
-
setMessage
Set the message of thisDetailsErrorResponseinstance.- Parameters:
message- Plaintext error description
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDetailsErrorResponse.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisDetailsErrorResponseinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisDetailsErrorResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDetailsErrorResponseinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newDetailsErrorResponseinstance. No arguments are required.
-
toMap()instead.