Class Error
java.lang.Object
com.sap.ai.sdk.orchestration.model.Error
Error
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the code of thisErrorinstance and return the same instance.static Error.Buildercreate()Create a type-safe, fluent-api builder object to construct a newErrorinstance with all required arguments.booleangetCode()Get codegetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theError.HTTP headers returned from the failed request attemptGet intermediateResultsWhere the error occurredGet messageGet requestIdinthashCode()Set the headers of thisErrorinstance and return the same instance.intermediateResults(ModuleResults intermediateResults) Set the intermediateResults of thisErrorinstance and return the same instance.Set the location of thisErrorinstance and return the same instance.Set the message of thisErrorinstance and return the same instance.putheadersItem(String key, String headersItem) Put one headers instance to thisErrorinstance.Set the requestId of thisErrorinstance and return the same instance.voidSet the code of thisErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisErrorinstance.voidsetHeaders(Map<String, String> headers) Set the headers of thisErrorinstance.voidsetIntermediateResults(ModuleResults intermediateResults) Set the intermediateResults of thisErrorinstance.voidsetLocation(String location) Set the location of thisErrorinstance.voidsetMessage(String message) Set the message of thisErrorinstance.voidsetRequestId(String requestId) Set the requestId of thisErrorinstance.toMap()Get the value of all properties of thisErrorinstance including unrecognized properties.toString()
-
Constructor Details
-
Error
protected Error()Default constructor for Error.
-
-
Method Details
-
requestId
Set the requestId of thisErrorinstance and return the same instance. -
getRequestId
Get requestId- Returns:
- requestId The requestId of this
Errorinstance.
-
setRequestId
Set the requestId of thisErrorinstance.- Parameters:
requestId- The requestId of thisError
-
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
-
location
Set the location of thisErrorinstance and return the same instance.- Parameters:
location- Where the error occurred- Returns:
- The same instance of this
Errorclass
-
getLocation
Where the error occurred- Returns:
- location The location of this
Errorinstance.
-
setLocation
Set the location of thisErrorinstance.- Parameters:
location- Where the error occurred
-
intermediateResults
Set the intermediateResults of thisErrorinstance and return the same instance. -
getIntermediateResults
Get intermediateResults- Returns:
- intermediateResults The intermediateResults of this
Errorinstance.
-
setIntermediateResults
Set the intermediateResults of thisErrorinstance.- Parameters:
intermediateResults- The intermediateResults of thisError
-
headers
Set the headers of thisErrorinstance and return the same instance.- Parameters:
headers- HTTP headers returned from the failed request attempt- Returns:
- The same instance of this
Errorclass
-
putheadersItem
Put one headers instance to thisErrorinstance.- Parameters:
key- The String key of this headers instanceheadersItem- The headers that should be added under the given key- Returns:
- The same instance of type
Error
-
getHeaders
HTTP headers returned from the failed request attempt- Returns:
- headers The headers of this
Errorinstance.
-
setHeaders
Set the headers of thisErrorinstance.- Parameters:
headers- HTTP headers returned from the failed request attempt
-
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
-
create
Create a type-safe, fluent-api builder object to construct a newErrorinstance with all required arguments.
-
toMap()instead.