Skip to content

DeviceAccessRefusedException

Class in Oadm.Sdk.Plugins · Oadm.Sdk.dll

The host refused device access during the call of a user with a device group (SDK 0.4.0, OADM 4.5): the plugin used ctx.Devices, ctx.Vapix, ctx.Tasks, ctx.EventStreams or ctx.System instead of the call (ICallContext), the method is one only users with all devices may call (ICorePlugin.RequiresAllDevices), the plugin was built for an SDK before the call context, or a task run through call.Tasks needs a permission the user’s role lacks (“Your role does not allow: …”). The host answers PERMISSION_DENIED with Exception.Message; nothing reached a device.

public sealed class DeviceAccessRefusedException : Exception

Inherits Exception

Guide: Device groups and the call context

DeviceAccessRefusedException()

With DeviceAccessRefusedException.AllDevicesOnly.

DeviceAccessRefusedException(string message)

With an own message for the user.

DeviceAccessRefusedException(string message, Exception innerException)

With an own message and the cause.

const string AllDevicesOnly = "Only users with all devices can do this."

The refusal of a method or a device access only users with all devices may use.

const string PluginNeedsAllDevices = "Only users with all devices can use this plugin."

The refusal of a plugin built for an SDK before 0.4.0, for a user with a device group.