Class RDCorePlatformInvalidParamsException
The params of a request the server sent the client are not what the method takes: a channel that can answer with an error code answers
ErrorCode (JSON-RPC InvalidParams).
public sealed class RDCorePlatformInvalidParamsException : Exception, ISerializable
- Inheritance
-
RDCorePlatformInvalidParamsException
- Implements
- Inherited Members
Remarks
Raised by the typed handlers of OnRequest<TParams, TResult>(IRDCorePlatformChannel, string, Func<TParams, CancellationToken, Task<TResult>>) before the handler runs, so that a request the client cannot read is told apart from one it failed to answer.
Constructors
RDCorePlatformInvalidParamsException(string, Exception)
Creates the exception.
public RDCorePlatformInvalidParamsException(string method, Exception innerException)
Parameters
methodstringThe method of the request.
innerExceptionExceptionWhy the parameters could not be read.
Fields
ErrorCode
JSON-RPC 2.0 InvalidParams: the parameters of the request are not valid for its method.
public const int ErrorCode = -32602
Field Value
Properties
Method
The method of the request.
public string Method { get; }