Class Error
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.Error
Error
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisErrorinstance and return the same instance.booleangetCode()Get codegetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theError.Get innerErrorGet messagegetParam()Get paramgetType()Get typeinthashCode()innerError(InnerError innerError) Set the innerError of thisErrorinstance and return the same instance.Set the message of thisErrorinstance and return the same instance.Set the param of thisErrorinstance and return the same instance.voidSet the code of thisErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisErrorinstance.voidsetInnerError(InnerError innerError) Set the innerError of thisErrorinstance.voidsetMessage(String message) Set the message of thisErrorinstance.voidSet the param of thisErrorinstance.voidSet the type of thisErrorinstance.toMap()Get the value of all properties of thisErrorinstance including unrecognized properties.toString()Set the type of thisErrorinstance and return the same instance.
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
code
Set the code of thisErrorinstance and return the same instance. -
getCode
Get code- Returns:
- code The code of this
Errorinstance.
-
setCode
Set the code of thisErrorinstance.- Parameters:
code- The code of thisError
-
message
Set the message of thisErrorinstance and return the same instance. -
getMessage
Get message- Returns:
- message The message of this
Errorinstance.
-
setMessage
Set the message of thisErrorinstance.- Parameters:
message- The message of thisError
-
param
Set the param of thisErrorinstance and return the same instance. -
getParam
Get param- Returns:
- param The param of this
Errorinstance.
-
setParam
Set the param of thisErrorinstance.- Parameters:
param- The param of thisError
-
type
Set the type of thisErrorinstance and return the same instance. -
getType
Get type- Returns:
- type The type of this
Errorinstance.
-
setType
Set the type of thisErrorinstance.- Parameters:
type- The type of thisError
-
innerError
Set the innerError of thisErrorinstance and return the same instance. -
getInnerError
Get innerError- Returns:
- innerError The innerError of this
Errorinstance.
-
setInnerError
Set the innerError of thisErrorinstance.- Parameters:
innerError- The innerError of thisError
-
getCustomFieldNames
Get the names of the unrecognizable properties of theError.- 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 thisErrorinstance.- 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 thisErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisErrorinstance. 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.