Packages

final case class Error(error: ErrorObject, id: RequestId, jsonrpc: String = "2.0", headers: Map[String, String] = Map.empty) extends RuntimeException with Response with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, Response, Message, RuntimeException, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Error
  2. Serializable
  3. Product
  4. Equals
  5. Response
  6. Message
  7. RuntimeException
  8. Exception
  9. Throwable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Error(error: ErrorObject, id: RequestId, jsonrpc: String = "2.0", headers: Map[String, String] = Map.empty)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. val error: ErrorObject
  9. def fillInStackTrace(): Throwable
    Definition Classes
    Throwable
  10. def getCause(): Throwable
    Definition Classes
    Throwable
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  13. def getMessage(): String
    Definition Classes
    Throwable
  14. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  15. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  16. val headers: Map[String, String]

    Every message contains a set of HTTP-like headers, but these headers are defined outside of the JSON-RPC protocol specification and are transmitted at the transport level.

    Every message contains a set of HTTP-like headers, but these headers are defined outside of the JSON-RPC protocol specification and are transmitted at the transport level. That is, it is up to the message readers and writers to decide how these headers are trasmitted over the network.

    For example, if JSON-RPC is being transmitted over HTTP/2, the message reader and writer implementation can use the HTTP/2 headers to transport the message headers. Howevrer, if JSON-RPC messages are transmitted over a socket such as WebSockets or a pipe or file channel, then these headers can be transmitted with the base protocol defined in the Language Server Protocol here.

    This last strategy is the one implemented in this library by default as it is the most flexible regardless of the transport used for JSON-RPC messages.

    Note that because of this, headers are never serialized into the JSON wire format and the serializers/deserializers here defined will remove any headers before writing and before reading JSON-RPC messages.

    Definition Classes
    ErrorMessage
  17. val id: RequestId
  18. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isSuccess: Boolean
    Definition Classes
    Response
  21. val jsonrpc: String
    Definition Classes
    ErrorMessage
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  26. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  27. def printStackTrace(): Unit
    Definition Classes
    Throwable
  28. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    Throwable → AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Response

Inherited from Message

Inherited from RuntimeException

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped