sealed abstract class Code 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
.
- Source
- Code.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Code
- GeneratedEnum
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def canEqual(that: Any): Boolean
- Definition Classes
- Equals
- abstract def index: Int
- Definition Classes
- GeneratedEnum
- abstract def name: String
- Definition Classes
- GeneratedEnum
- abstract def productArity: Int
- Definition Classes
- Product
- abstract def productElement(n: Int): Any
- Definition Classes
- Product
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def asRecognized: Option[Recognized]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: GeneratedEnumCompanion[Code]
- Definition Classes
- Code → GeneratedEnum
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isAborted: Boolean
- def isAlreadyExists: Boolean
- def isCancelled: Boolean
- def isDataLoss: Boolean
- def isDeadlineExceeded: Boolean
- def isFailedPrecondition: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isInternal: Boolean
- def isInvalidArgument: Boolean
- def isNotFound: Boolean
- def isOk: Boolean
- def isOutOfRange: Boolean
- def isPermissionDenied: Boolean
- def isResourceExhausted: Boolean
- def isUnauthenticated: Boolean
- def isUnavailable: Boolean
- def isUnimplemented: Boolean
- def isUnknown: Boolean
- def isUnrecognized: Boolean
- Definition Classes
- GeneratedEnum
- def javaValueDescriptor: EnumValueDescriptor
- Definition Classes
- GeneratedEnum
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- def scalaValueDescriptor: EnumValueDescriptor
- Definition Classes
- GeneratedEnum
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- GeneratedEnum → Any
- val value: Int
- Definition Classes
- Code → GeneratedEnum
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()