Top Description Fields Constructors Methods
io.rsocket

public Class RSocketErrorException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
io.rsocket.exceptions.ApplicationErrorException, io.rsocket.exceptions.CanceledException, io.rsocket.exceptions.ConnectionCloseException, io.rsocket.exceptions.ConnectionErrorException, io.rsocket.exceptions.CustomRSocketException, io.rsocket.exceptions.InvalidException, io.rsocket.exceptions.RejectedException, io.rsocket.exceptions.RejectedResumeException, io.rsocket.exceptions.SetupException
Imports
reactor.util.annotation.Nullable

Exception that represents an RSocket protocol error.
See Also
ERROR Frame (0x0B)

Field Summary

Modifier and TypeField and Description
private final int
private static final int
private static final int
private static final long

Constructor Summary

AccessConstructor and Description
public
RSocketErrorException(int
the RSocket protocol error code
errorCode
,
String
error explanation
message
)

Constructor with a protocol error code and a message.

public
RSocketErrorException(int
the RSocket protocol error code
errorCode
,
String
error explanation
message
,
Throwable
a root cause for the error
cause
)

Alternative to RSocketErrorException(int, String) with a root cause.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the RSocket protocol error code
errorCode
()

Return the RSocket error code represented by this exception

public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

errorCodeback to summary
private final int errorCode
MAX_ERROR_CODEback to summary
private static final int MAX_ERROR_CODE
MIN_ERROR_CODEback to summary
private static final int MIN_ERROR_CODE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

RSocketErrorExceptionback to summary
public RSocketErrorException(int errorCode, String message)

Constructor with a protocol error code and a message.

Parameters
errorCode:int

the RSocket protocol error code

message:String

error explanation

RSocketErrorExceptionback to summary
public RSocketErrorException(int errorCode, String message, Throwable cause)

Alternative to RSocketErrorException(int, String) with a root cause.

Parameters
errorCode:int

the RSocket protocol error code

message:String

error explanation

cause:Throwable

a root cause for the error

Method Detail

errorCodeback to summary
public int errorCode()

Return the RSocket error code represented by this exception

Returns:int

the RSocket protocol error code

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override