The canonical error codes for gRPC APIs.
Sometimes multiple error codes may apply. Services should return
the most specific error code that applies. For example, prefer
OUT_OF_RANGE
over FAILED_PRECONDITION
if both codes apply.
Similarly prefer NOT_FOUND
or ALREADY_EXISTS
over FAILED_PRECONDITION
.
- Companion:
- object
- Source:
- Code.scala
object ABORTED.type
object ALREADY_EXISTS.type
object CANCELLED.type
object DATA_LOSS.type
object DEADLINE_EXCEEDED.type
object FAILED_PRECONDITION.type
object INTERNAL.type
object INVALID_ARGUMENT.type
object NOT_FOUND.type
object OK.type
object OUT_OF_RANGE.type
object PERMISSION_DENIED.type
object RESOURCE_EXHAUSTED.type
trait Recognized
object UNAUTHENTICATED.type
object UNAVAILABLE.type
object UNIMPLEMENTED.type
object UNKNOWN.type
class Unrecognized
Type members
Types
Value members
Concrete methods
Inherited methods
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
- Returns:
a string representation of the object.
- Definition Classes
- GeneratedEnum -> Any
- Inherited from:
- GeneratedEnum
- Source:
- GeneratedMessageCompanion.scala