Class ErrorBase
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ErrorBase
ErrorBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisErrorBaseinstance and return the same instance.booleangetCode()Get codegetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theErrorBase.Get messageinthashCode()Set the message of thisErrorBaseinstance and return the same instance.voidSet the code of thisErrorBaseinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisErrorBaseinstance.voidsetMessage(String message) Set the message of thisErrorBaseinstance.toMap()Get the value of all properties of thisErrorBaseinstance including unrecognized properties.toString()
-
Constructor Details
-
ErrorBase
public ErrorBase()
-
-
Method Details
-
code
Set the code of thisErrorBaseinstance and return the same instance. -
getCode
Get code- Returns:
- code The code of this
ErrorBaseinstance.
-
setCode
Set the code of thisErrorBaseinstance.- Parameters:
code- The code of thisErrorBase
-
message
Set the message of thisErrorBaseinstance and return the same instance. -
getMessage
Get message- Returns:
- message The message of this
ErrorBaseinstance.
-
setMessage
Set the message of thisErrorBaseinstance.- Parameters:
message- The message of thisErrorBase
-
getCustomFieldNames
Get the names of the unrecognizable properties of theErrorBase.- 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 thisErrorBaseinstance.- 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 thisErrorBaseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisErrorBaseinstance. 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
-
toMap()instead.