The errorCode field of RSocketError made internal, it is not accessible from application code.
Motivation
An RSocketError.Custom has an error code associated with it. Allowed errorCode value should be in range [0x00000301-0xFFFFFFFE]. The only sane reason to set the code for custom exception is an ability to inspect it later within application.
the code value is not usable within application when errorCode is internal;
it is not clear what minimal allowed value is until IAE is thrown. ErrorCode.CustomMin constant -- the lower bond -- is also internal.
Desired solution
Make both errorCode and ErrorCode.CustomMin public.
The
errorCode
field ofRSocketError
madeinternal
, it is not accessible from application code.Motivation
An
RSocketError.Custom
has an error code associated with it. AllowederrorCode
value should be in range [0x00000301-0xFFFFFFFE]. The only sane reason to set the code for custom exception is an ability to inspect it later within application.errorCode
is internal;IAE
is thrown.ErrorCode.CustomMin
constant -- the lower bond -- is also internal.Desired solution
Make both
errorCode
andErrorCode.CustomMin
public.