Package com.sap.ai.sdk.core.model
Class TntApiError
java.lang.Object
com.sap.ai.sdk.core.model.TntApiError
TntApiError
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisTntApiErrorinstance and return the same instance.static TntApiError.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTntApiErrorinstance with all required arguments.Set the details of thisTntApiErrorinstance and return the same instance.booleangetCode()Descriptive error code (not http status code)getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTntApiError.Optional details of the error messagePlaintext error descriptionID of the individual requestInvoked URLinthashCode()Set the message of thisTntApiErrorinstance and return the same instance.Set the requestId of thisTntApiErrorinstance and return the same instance.voidSet the code of thisTntApiErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTntApiErrorinstance.voidsetDetails(Object details) Set the details of thisTntApiErrorinstance.voidsetMessage(String message) Set the message of thisTntApiErrorinstance.voidsetRequestId(String requestId) Set the requestId of thisTntApiErrorinstance.voidSet the target of thisTntApiErrorinstance.Set the target of thisTntApiErrorinstance and return the same instance.toMap()Get the value of all properties of thisTntApiErrorinstance including unrecognized properties.toString()
-
Constructor Details
-
TntApiError
protected TntApiError()Default constructor for TntApiError.
-
-
Method Details
-
code
Set the code of thisTntApiErrorinstance and return the same instance.- Parameters:
code- Descriptive error code (not http status code)- Returns:
- The same instance of this
TntApiErrorclass
-
getCode
Descriptive error code (not http status code)- Returns:
- code The code of this
TntApiErrorinstance.
-
setCode
Set the code of thisTntApiErrorinstance.- Parameters:
code- Descriptive error code (not http status code)
-
message
Set the message of thisTntApiErrorinstance and return the same instance.- Parameters:
message- Plaintext error description- Returns:
- The same instance of this
TntApiErrorclass
-
getMessage
Plaintext error description- Returns:
- message The message of this
TntApiErrorinstance.
-
setMessage
Set the message of thisTntApiErrorinstance.- Parameters:
message- Plaintext error description
-
requestId
Set the requestId of thisTntApiErrorinstance and return the same instance.- Parameters:
requestId- ID of the individual request- Returns:
- The same instance of this
TntApiErrorclass
-
getRequestId
ID of the individual request- Returns:
- requestId The requestId of this
TntApiErrorinstance.
-
setRequestId
Set the requestId of thisTntApiErrorinstance.- Parameters:
requestId- ID of the individual request
-
target
Set the target of thisTntApiErrorinstance and return the same instance.- Parameters:
target- Invoked URL- Returns:
- The same instance of this
TntApiErrorclass
-
getTarget
Invoked URL- Returns:
- target The target of this
TntApiErrorinstance.
-
setTarget
Set the target of thisTntApiErrorinstance.- Parameters:
target- Invoked URL
-
details
Set the details of thisTntApiErrorinstance and return the same instance.- Parameters:
details- Optional details of the error message- Returns:
- The same instance of this
TntApiErrorclass
-
getDetails
Optional details of the error message- Returns:
- details The details of this
TntApiErrorinstance.
-
setDetails
Set the details of thisTntApiErrorinstance.- Parameters:
details- Optional details of the error message
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTntApiError.- 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 thisTntApiErrorinstance.- 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 thisTntApiErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTntApiErrorinstance. 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 type-safe, fluent-api builder object to construct a newTntApiErrorinstance with all required arguments.
-
toMap()instead.