object ErrorCode
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorCode
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- class ApiException extends StatusRuntimeException with NoStackTrace
- class LoggedApiException extends ApiException
Exception that has already been logged.
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
- 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.
- def asGrpcError(err: BaseError)(implicit loggingContext: ContextualizedErrorLogger): StatusRuntimeException
- def asGrpcStatus(err: BaseError)(implicit loggingContext: ContextualizedErrorLogger): Status
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])