public final class Exceptions extends Object
Modifier and Type | Method and Description |
---|---|
static RuntimeException |
from(int streamId,
ByteBuf frame)
Create a
RSocketErrorException from a Frame that matches the error code it contains. |
public static RuntimeException from(int streamId, ByteBuf frame)
RSocketErrorException
from a Frame that matches the error code it contains.frame
- the frame to retrieve the error code and message fromRSocketErrorException
that matches the error code in the FrameNullPointerException
- if frame
is null