Code

com.google.rpc.Code
See theCode companion object
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.

Attributes

Companion
object
Source
Code.scala
Graph
Supertypes
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object ABORTED
object CANCELLED
object DATA_LOSS
object INTERNAL
object NOT_FOUND
object OK
object OUT_OF_RANGE
trait Recognized
object UNAVAILABLE
object UNIMPLEMENTED
object UNKNOWN
class Unrecognized
Show all

Members list

Type members

Types

type EnumType = Code

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Value members

Concrete methods

Attributes

Source
Code.scala
def companion: GeneratedEnumCompanion[Code]

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala
def isOk: Boolean

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Attributes

Source
Code.scala

Inherited methods

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def javaValueDescriptor: EnumValueDescriptor

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def scalaValueDescriptor: EnumValueDescriptor

Attributes

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.

Attributes

Returns

a string representation of the object.

Definition Classes
GeneratedEnum -> Any
Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def index: Int

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def name: String

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Concrete fields

val value: Int

Attributes

Source
Code.scala