NetworkError
Represents an error that occurred while sending or processing a ConversationEntry.
Access the specific error type via pattern matching on the sealed subclasses. Use ConversationEntry.error to retrieve the error associated with a failed entry.
Inheritors
Types
Link copied to clipboard
A server expectation was not met (HTTP 417).
Link copied to clipboard
class FileSizeLimitError(message: String, val fileSizeLimit: Int = parseFileSizeLimit(message)) : NetworkError
The attached file exceeds the server's size limit (HTTP 413).
Link copied to clipboard
A general or unrecognized error.
Link copied to clipboard
The referenced attachment could not be found (HTTP 404).
Link copied to clipboard
The server rejected the request because a precondition was not met (HTTP 412).
Link copied to clipboard
The upload was rejected because too many requests were made (HTTP 429).
Link copied to clipboard
The server could not process the attachment; uploads may not be enabled (HTTP 422).
Link copied to clipboard
The attached file type is not supported by the server (HTTP 415).