Top Fields Constructors Methods
io.rsocket.exceptions

public Class CustomRSocketException

extends RSocketErrorException
Class Inheritance
Imports
io.rsocket.RSocketErrorException, io.rsocket.frame.ErrorFrameCodec, reactor.util.annotation.Nullable

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
CustomRSocketException(int
customizable error code. Should be in range [0x00000301-0xFFFFFFFE]
errorCode
,
String
the message
message
)

Constructs a new exception with the specified message.

public
CustomRSocketException(int
customizable error code. Should be in range [0x00000301-0xFFFFFFFE]
errorCode
,
String
the message
message
,
Throwable
the cause of this exception
cause
)

Constructs a new exception with the specified message and cause.

Method Summary

Inherited from io.rsocket.RSocketErrorException:
errorCodetoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.rsocket.RSocketErrorException.serialVersionUID.

Constructor Detail

CustomRSocketExceptionback to summary
public CustomRSocketException(int errorCode, String message)

Constructs a new exception with the specified message.

Parameters
errorCode:int

customizable error code. Should be in range [0x00000301-0xFFFFFFFE]

message:String

the message

Exceptions
IllegalArgumentException:
if errorCode is out of allowed range
CustomRSocketExceptionback to summary
public CustomRSocketException(int errorCode, String message, Throwable cause)

Constructs a new exception with the specified message and cause.

Parameters
errorCode:int

customizable error code. Should be in range [0x00000301-0xFFFFFFFE]

message:String

the message

cause:Throwable

the cause of this exception

Exceptions
IllegalArgumentException:
if errorCode is out of allowed range