automorph.protocol.webrpc

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 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

Web-RPC protocol message structure.

Web-RPC protocol message structure.

Type parameters

Node

message node type

Value parameters

error

failed method call error details

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
final case class MessageError(message: Option[String], code: Option[Int])

Web-RPC protocol message error structure.

Web-RPC protocol message error structure.

Value parameters

code

error code

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

Web-RPC message type.

Web-RPC message type.

Attributes

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

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class WebRpcException(message: String, code: Option[Int], cause: Throwable) extends RuntimeException

Web-RPC API error exception.

Web-RPC API error exception.

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

Value parameters

cause

exception cause

code

error code

message

error message

Attributes

Constructor

Creates a new Web-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