Code

sealed abstract class Code(val value: Int) extends GeneratedEnum

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
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object ABORTED.type
object ALREADY_EXISTS.type
object CANCELLED.type
object DATA_LOSS.type
object DEADLINE_EXCEEDED.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
object UNAUTHENTICATED.type
object UNAVAILABLE.type
object UNIMPLEMENTED.type
object UNKNOWN.type

Type members

Types

type EnumType = Code
Source:
Code.scala

Value members

Inherited methods

def canEqual(that: Any): Boolean
Inherited from:
Equals
def index: Int
Inherited from:
GeneratedEnum
Source:
GeneratedMessageCompanion.scala
Inherited from:
GeneratedEnum
Source:
GeneratedMessageCompanion.scala
def javaValueDescriptor: EnumValueDescriptor
Inherited from:
GeneratedEnum
Source:
GeneratedMessageCompanion.scala
Inherited from:
GeneratedEnum
Source:
GeneratedMessageCompanion.scala
Inherited from:
Product
def productElement(n: Int): Any
Inherited from:
Product
Inherited from:
Product
Inherited from:
Product
Inherited from:
Product
def scalaValueDescriptor: EnumValueDescriptor
Inherited from:
GeneratedEnum
Source:
GeneratedMessageCompanion.scala
override def toString: String

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

Concrete fields

val value: Int
Source:
Code.scala