function throwMissingPropertyError()

in lib/eventstream_rpc_utils.ts [183:189]


function throwMissingPropertyError(propertyName?: string, type?: string) : void {
    if (propertyName && type) {
        throw eventstream_rpc.createRpcError(eventstream_rpc.RpcErrorType.ValidationError, `Missing required property '${propertyName}' of type '${type}'`);
    } else {
        throw eventstream_rpc.createRpcError(eventstream_rpc.RpcErrorType.ValidationError, `Missing required property`);
    }
}