object ErrorCode

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErrorCode
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class ApiException extends StatusRuntimeException with NoStackTrace
  2. class LoggedApiException extends ApiException

    Exception that has already been logged.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val MaxErrorContentBytes: Int

    Maximum size (in bytes) of the com.google.rpc.Status proto that a self-service error code can be serialized into.

    Maximum size (in bytes) of the com.google.rpc.Status proto that a self-service error code can be serialized into.

    We choose this value with the following considerations:

    • The serialized error Status proto is packed into a io.grpc.Metadata together with the error description, which is then enriched with additional gRPC-internal entries and converted into HTTP2 headers for transmission.
    • The default maximum gRPC metadata size is 8KB (for both clients and servers). We MUST ensure that we don't exceed this value for error-returning gRPC metadata, otherwise INTERNAL errors may be reported on both the client and server.
    • The error description is packed twice in the serialized metadata (see ErrorCode.asGrpcError and how it creates a io.grpc.StatusRuntimeException).

    Conservatively we allow a buffer of > 3KB for gRPC and gRPC->HTTP2 internals overhead. (considering a MaxErrorContentBytes maximum Status proto size and limit the cause description size).

    Note: instead of increasing this value, consider limiting better the error contents.

  5. def asGrpcError(err: BaseError)(implicit loggingContext: ContextualizedErrorLogger): StatusRuntimeException
  6. def asGrpcStatus(err: BaseError)(implicit loggingContext: ContextualizedErrorLogger): Status
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped