StatusCode class

Constructors

StatusCode()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

fromHttpStatus(int status) int
Creates a gRPC Status code from a HTTP Status code

Constants

aborted → const int
The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.
alreadyExists → const int
Some entity that we attempted to create (e.g., file or directory) already exists.
cancelled → const int
The operation was cancelled (typically by the caller).
dataLoss → const int
Unrecoverable data loss or corruption.
deadlineExceeded → const int
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.
failedPrecondition → const int
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.
internal → const int
Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken.
invalidArgument → const int
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).
notFound → const int
Some requested entity (e.g., file or directory) was not found.
ok → const int
The operation completed successfully.
outOfRange → const int
Operation was attempted past the valid range. E.g., seeking or reading past end of file.
permissionDenied → const int
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).
resourceExhausted → const int
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
unauthenticated → const int
The request does not have valid authentication credentials for the operation.
unavailable → const int
The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.
unimplemented → const int
Operation is not implemented or not supported/enabled in this service.
unknown → const int
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.