roboto.exceptions.domain
Module Contents
AUTHENTICATION_FAILURE_MESSAGE
ReadPlanExecutionErrorKind
Bases: roboto.compat.StrEnum
Why a read of topic data through a read plan cannot continue.
Attributes
ReadPlanExecutionErrorKind.DATA_RANGE_NOT_IN_FILE
A partition’s data_range ends past its file’s stored row count, so the file lacks rows the slice names.
ReadPlanExecutionErrorKind.FIELD_NOT_IN_FILE
A file lacks a field the read takes from it: a field it supplies, or the partition’s timestamp field.
ReadPlanExecutionErrorKind.FIELD_SPLIT_INSIDE_NON_STRUCT
A partition’s files split a field that one of them stores as other than a struct, such as a list or a map.
ReadPlanExecutionErrorKind.INCONSISTENT_SCAN_TASKS_ON_FILE
Scan tasks of one partition read one file but disagree on its format, transformations or topic name.
ReadPlanExecutionErrorKind.INVALID_TIMESTAMP
A stored timestamp has no signed 64-bit nanosecond value once shifted by its partition’s time_offset_ns: it is NaN or infinite, a DECIMAL holding a fraction of a nanosecond, or out of range.
ReadPlanExecutionErrorKind.PARTITION_SCHEMA_MISMATCH
A later partition’s files give the read a different schema than the first partition’s.
ReadPlanExecutionErrorKind.PLAN_WITHOUT_SCHEMA
The plan projects every field of its schema, has a partition with a scan task, and names no schema.
ReadPlanExecutionErrorKind.PROJECTED_FIELD_IN_NO_SCAN_TASK
No scan task of a partition reads the whole schema or a subtree containing a projected field.
ReadPlanExecutionErrorKind.SCAN_TASK_ROW_MISMATCH
The files of a partition hold different rows in the window.
ReadPlanExecutionErrorKind.UNSUPPORTED_FORMAT
A scan task stores its data in a format other than MCAP and Parquet, the formats the readers decode.
ReadPlanExecutionErrorKind.UNSUPPORTED_TIMESTAMP
The partition’s timestamp is one the readers refuse: a kind they do not know; a schema field with no path; a unit other than s, ms, us or ns; a message log or publish time on a Parquet file; or a Parquet timestamp field inside a list or map, holding a DATE or TIME, or not a number.
RobotoAuthenticationFailureException
Bases: RobotoDomainException
Thrown when authentication fails
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoConditionException
Bases: RobotoDomainException
Thrown if there is a failed condition
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoConflictException
Bases: RobotoDomainException
Thrown if there is a conflict between a resource you’re creating and another existing resource
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoContextTooLongException
Bases: RobotoDomainException
Thrown when the conversation context (messages, system prompt, tool results) exceeds the model’s context window limit.
The token estimate and the model’s context limit are not carried on the exception, so a caller cannot read usage numbers off it.
Parameters
message strstack_trace list[str]headers dict[str, str]estimated_tokens intmax_tokens intProperties
RobotoDashboardRevisionConflictException
Bases: RobotoConflictException
Thrown when a dashboard definition write carries a base revision that no longer matches the stored one — someone replaced the definition after the requester loaded it, so applying the write would erase their edit.
Carries the server’s current dashboard record, read under the same row lock that rejected the write, so a client can show both sides and let the user resolve without a second round trip.
Parameters
message strcurrent_dashboard dict[str, Any]stack_trace list[str]headers dict[str, str]Attributes
RobotoDashboardRevisionConflictException.current_dashboard
current_dashboard #RobotoDashboardRevisionConflictException.to_dict()
Return type
RobotoDatasetNotFoundException
Bases: RobotoNotFoundException
Specialization of RobotoNotFoundException for datasets.
Parameters
message strstack_trace list[str]headers dict[str, str]RobotoDeprecatedException
Bases: RobotoDomainException
Thrown when an old API endpoint is called, to tell the client to upgrade
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoDeviceNotFoundException
Bases: RobotoNotFoundException
Specialization of RobotoNotFoundException for devices.
Parameters
message strstack_trace list[str]headers dict[str, str]RobotoDomainException
Bases: Exception
Expected exceptions from the Roboto domain entity objects.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoDomainException.from_client_error()
Parameters
Return type
RobotoDomainException.from_json()
Parameters
contents dict[str, Any]headers dict[str, str]Return type
RobotoDomainException.from_json_string()
Parameters
contents strReturn type
RobotoDomainException.serialize()
Return type
Properties
RobotoDomainException.to_dict()
Return type
RobotoExpiredException
Bases: RobotoDomainException
Thrown if a resource is missing or expired.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoFailedToGenerateException
Bases: RobotoDomainException
Thrown when Roboto fails to generate a resource due to an internal error.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoFeatureNotAvailableException
Bases: RobotoDomainException
Thrown when a route is gated by a feature flag that is not enabled for the caller.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoHttpExceptionParse
Bases: object
RobotoIllegalArgumentException
Bases: RobotoDomainException
Thrown when request parameters are in some way invalid
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoInternalException
Bases: RobotoDomainException
Thrown when Roboto throws an unexpected internal error, expected to be systemic.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoInvalidRequestException
Bases: RobotoDomainException
Thrown when request parameters are in some way invalid
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoInvalidStateTransitionException
Bases: RobotoDomainException
Thrown when requesting update of state to an invalid state, or via an invalid transition path
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoLayoutConflictException
Bases: RobotoConflictException
Thrown when multiple layouts with the same name are found and need disambiguation. Contains the conflicting layout records for client handling.
Parameters
message strconflicting_layouts list[dict[str, Any]]stack_trace list[str]headers dict[str, str]Attributes
RobotoLayoutConflictException.conflicting_layouts
conflicting_layouts #RobotoLayoutConflictException.to_dict()
Return type
RobotoLimitExceededException
Bases: RobotoDomainException
Thrown if an operation would exceed a user or org level limit.
Parameters
message strstack_trace list[str]resource_name strcurrent_quantity intlimit_quantity intProperties
RobotoLimitExceededException.to_dict()
Return type
RobotoNoOrgProvidedException
Bases: RobotoDomainException
Thrown when no org is provided to an operation which requires an org.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoNotFoundException
Bases: RobotoDomainException
Throw when a requested resource does not exist
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoNotImplementedException
Bases: RobotoDomainException
Thrown by shimmed out APIs which have not yet been implemented
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoNotReadyException
Bases: RobotoDomainException
Throw when a requested resource is resolvable by ID/context but is not fully initialized or ready to be served.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoOperationTimeoutException
Bases: RobotoServiceTimeoutException
Raised when an operation exceeds Roboto’s time budget and is aborted.
Roboto bounds certain operations with a time budget; exceeding it aborts the operation rather than letting it run unbounded. This is expected to be transient and ought to be retried.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoReadPlanExecutionException
Bases: RobotoInternalException
Thrown when a read of topic data through a read plan cannot continue, with the reason as its kind.
Parameters
message strstack_trace list[str]headers dict[str, str]kind ReadPlanExecutionErrorKind | strfield_path Optional[collections.row_number Optional[int]Properties
RobotoReadPlanExecutionException.field_path
For field-not-in-file, the missing field’s path components, from its top-level field down to the first component the file lacks.
RobotoReadPlanExecutionException.kind
Why the read cannot continue.
RobotoReadPlanExecutionException.row_number
For invalid-timestamp, the row’s 0-based position among its topic’s rows in its file.
RobotoReadPlanExecutionException.to_dict()
Return type
RobotoResponseTooLargeException
Bases: RobotoDomainException
Thrown when the server cannot complete the request because the response payload exceeds a storage or transport capacity limit (e.g., Lambda response size). This is NOT expected to be transient and should NOT be retried.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoServiceException
Bases: RobotoDomainException
Thrown when Roboto Service failed in an unexpected way
Parameters
message strstack_trace list[str]headers dict[str, str]RobotoServiceTimeoutException
Bases: RobotoDomainException
Thrown when the service times out while processing a request. This is exepcted to be transient and ought to be retried.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoServiceUnavailableException
Bases: RobotoDomainException
Thrown when a service is unavailable, such as when it’s under heavy load and can’t accept new requests. This is expected to be transient and ought to be retried.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoThreadReadOnlyException
Bases: RobotoDomainException
Thrown when adding to an agent thread that another surface owns.
A thread with an origin is mirrored into a conversation Roboto does not own, so appending to it over the API would leave that mirror incomplete.
Not an authorization failure, and not a subclass of RobotoUnauthorizedException: the caller may read, cancel, and rate the thread, and forking it yields a writable copy. Nothing about their identity would change the answer, so a client should offer the fork rather than send them to re-authenticate.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoUnauthorizedException
Bases: RobotoDomainException
Thrown when a user is attempting to access a resource that they do not have permission to access
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoUnknownOperationException
Bases: RobotoDomainException
Thrown if a user is attempting to perform an action unrecognized by the Roboto platform.
Parameters
message strstack_trace list[str]headers dict[str, str]Properties
RobotoUnrecognizedErrorException
Bases: RobotoDomainException
An error the platform reported that this SDK release cannot resolve to a specific exception class.
Reported for an element of a BatchResponse whose error names a code this release defines no class for, or that arrived without a code, without a message, or as text that is not an error envelope at all. It carries whatever code and message the platform sent, so a caller handling the failure still learns what went wrong; when no message could be read, the message is the error’s raw text.
The error envelope carries no status code, so http_status_code reports the 500 inherited from RobotoDomainException rather than the status the failure actually had.
Parameters
message strstack_trace list[str]headers dict[str, str]error_code Optional[str]Properties
RobotoUnrecognizedErrorException.error_code
The code the platform sent, or this class’s name when the error arrived without one.