Class RpcError
- Namespace
- LiveKit
Errors thrown by RPC method handlers or generated due to a failure in the RPC call.
Built-in error codes are listed in RpcError.ErrorCode.
You may also throw custom errors with your own code and data.
Errors of this type thrown in your handler will be transmitted as-is without modification.
All other errors will be converted to a generic APPLICATION_ERROR (1500).
public class RpcError : Exception, ISerializable
- Inheritance
-
RpcError
- Implements
- Inherited Members
- Extension Methods
Constructors
RpcError(uint, string, string)
public RpcError(uint code, string message, string rpcData = null)
Parameters
Properties
Code
Integer error code. Values 1000-1999 are reserved for the framework, see RpcError.ErrorCode.
public uint Code { get; }
Property Value
RpcData
String error data. Max 15KiB UTF-8.
public string RpcData { get; }