JSONRPCErrorBuilder

Abstract DSL builder for Error classes.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var code: Long?
Link copied to clipboard
var data: Data?
Link copied to clipboard

Functions

Link copied to clipboard
open fun build(): E

Builds an E class instance with the configured parameters.

Link copied to clipboard
fun code(code: Long): T

Sets the error code.

Link copied to clipboard
fun data(data: Data?): T

Sets the additional error data.

Link copied to clipboard
fun message(message: String): T

Sets the error message.