automorph.protocol.jsonrpc

Members list

Type members

Classlikes

sealed abstract class ErrorType(val code: Int)

JSON-RPC error type with code.

JSON-RPC error type with code.

Attributes

See also
Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ApplicationError.type
object InternalError.type
object InvalidParams.type
object InvalidRequest.type
object MethodNotFound.type
object ParseError.type
object ReservedError.type
object ServerError.type
Show all
object ErrorType

JSON-RPC error types with codes.

JSON-RPC error types with codes.

Attributes

See also
Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ErrorType.type
final case class JsonRpcException[Node](message: String, code: Int, data: Option[Node], cause: Throwable) extends RuntimeException

JSON-RPC API error exception.

JSON-RPC API error exception.

API methods bound via an RPC request handler can throw this exception to customize JSON-RPC error response.

Type parameters

Node

message codec node representation type

Value parameters

cause

exception cause

code

error code

data

additional error information

message

error description

Attributes

Constructor

Creates a new JSON-RPC error exception.

See also
Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

JSON-RPC protocol message structure.

JSON-RPC protocol message structure.

Type parameters

Node

message node type

Value parameters

error

failed method call error details

id

call identifier, a request without and identifier is considered to be a notification

jsonrpc

protocol version (must be 2.0)

method

invoked method name

params

invoked method argument values by position or by name

result

succesful method call result value

Attributes

See also
Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Message

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Message.type

JSON-RPC protocol message error structure.

JSON-RPC protocol message error structure.

Type parameters

Node

message node type

Value parameters

code

error code

data

additional error information

message

error message

Attributes

See also
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed abstract class MessageType

JSON-RPC message type.

JSON-RPC message type.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Call.type
object Error.type
object Notification.type
object Result.type
object MessageType

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type