ErrorResponse

class ErrorResponse(val error_code: Int = 0, val error_message: String = "", unknownFields: ByteString = ByteString.EMPTY) : Message<ErrorResponse, Nothing>

The error code and error message sent by the server when an error occurs.

Constructors

Link copied to clipboard
constructor(error_code: Int = 0, error_message: String = "", unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@get:JvmName(name = "adapter")
val adapter: ProtoAdapter<ErrorResponse>
Link copied to clipboard

This field uses the error codes defined in grpc::StatusCode.

Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "unknownFields")
open val unknownFields: ByteString

Functions

Link copied to clipboard
fun copy(error_code: Int = this.error_code, error_message: String = this.error_message, unknownFields: ByteString = this.unknownFields): ErrorResponse
Link copied to clipboard
fun encode(stream: OutputStream)
fun encode(sink: BufferedSink)
Link copied to clipboard
fun encodeByteString(): ByteString
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard