Package ai.vectros.types
Class ErrorEvent.Builder
java.lang.Object
ai.vectros.types.ErrorEvent.Builder
- All Implemented Interfaces:
ErrorEvent._FinalStage,ErrorEvent.CodeStage,ErrorEvent.EventStage,ErrorEvent.MessageStage
- Enclosing class:
ErrorEvent
public static final class ErrorEvent.Builder
extends Object
implements ErrorEvent.EventStage, ErrorEvent.MessageStage, ErrorEvent.CodeStage, ErrorEvent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()A stable, machine-readable error code (for example,inference_error).event(@NotNull ErrorEventEvent event) Backward-compatible alias oftype.from(ErrorEvent other) A human-readable description of the error, suitable for surfacing to end users.
-
Method Details
-
from
- Specified by:
fromin interfaceErrorEvent.EventStage
-
event
Backward-compatible alias of
type. Alwayserror.Backward-compatible alias of
type. Alwayserror.- Specified by:
eventin interfaceErrorEvent.EventStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
message
A human-readable description of the error, suitable for surfacing to end users.
A human-readable description of the error, suitable for surfacing to end users.
- Specified by:
messagein interfaceErrorEvent.MessageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
code
A stable, machine-readable error code (for example,
inference_error).A stable, machine-readable error code (for example,
inference_error).- Specified by:
codein interfaceErrorEvent.CodeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
- Specified by:
buildin interfaceErrorEvent._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceErrorEvent._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceErrorEvent._FinalStage
-