GrpcError class

Implemented types

Constructors

GrpcError.aborted([String? message, List<GeneratedMessage>? details, Object? rawResponse])
The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.
const
GrpcError.alreadyExists([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Some entity that we attempted to create (e.g., file or directory) already exists.
const
GrpcError.cancelled([String? message, List<GeneratedMessage>? details, Object? rawResponse])
The operation was cancelled (typically by the caller).
const
GrpcError.custom(int code, [String? message, List<GeneratedMessage>? details, Object? rawResponse, Map<String, String>? trailers = const {}])
Custom error code.
const
GrpcError.dataLoss([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Unrecoverable data loss or corruption.
const
GrpcError.deadlineExceeded([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.
const
GrpcError.failedPrecondition([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Operation was rejected because the system is not in a state required for the operation's execution. For example, directory to be deleted may be non-empty, an rmdir operation is applied to a non-directory, etc.
const
GrpcError.internal([String? message, List<GeneratedMessage>? details, Object? rawResponse, Map<String, String>? trailers])
Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken.
const
GrpcError.invalidArgument([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Client specified an invalid argument. Note that this differs from failedPrecondition. invalidArgument indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).
const
GrpcError.notFound([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Some requested entity (e.g., file or directory) was not found.
const
GrpcError.ok([String? message, List<GeneratedMessage>? details, Object? rawResponse])
The operation completed successfully.
const
GrpcError.outOfRange([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Operation was attempted past the valid range. E.g., seeking or reading past end of file.
const
GrpcError.permissionDenied([String? message, List<GeneratedMessage>? details, Object? rawResponse])
The caller does not have permission to execute the specified operation. permissionDenied must not be used for rejections caused by exhausting some resource (use resourceExhausted instead for those errors). permissionDenied must not be used if the caller cannot be identified (use unauthenticated instead for those errors).
const
GrpcError.resourceExhausted([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
const
GrpcError.unauthenticated([String? message, List<GeneratedMessage>? details, Object? rawResponse])
The request does not have valid authentication credentials for the operation.
const
GrpcError.unavailable([String? message, List<GeneratedMessage>? details, Object? rawResponse])
The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.
const
GrpcError.unimplemented([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Operation is not implemented or not supported/enabled in this service.
const
GrpcError.unknown([String? message, List<GeneratedMessage>? details, Object? rawResponse])
Unknown error. An example of where this error may be returned is if a Status value received from another address space belongs to an error-space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.
const

Properties

code int
final
codeName String
Given a status code, return the name
no setter
details List<GeneratedMessage>?
final
hashCode int
The hash code for this object.
no setteroverride
message String?
final
rawResponse Object?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailers Map<String, String>?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override