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