Class ExpressionSandboxViolationException

Assembly: redb.Route.dll

Thrown when an expression tries to run code or read outside the message while an
scope is open: a method call, a registry object (ref:name) or an environment variable (env:NAME).

public sealed class ExpressionSandboxViolationException : InvalidOperationException, ISerializable

Inheritance

Object→Exception→SystemException→InvalidOperationException→ExpressionSandboxViolationException

Implements

Properties

MethodName

The method the expression tried to call; for a refused read, the spelling ().

public string MethodName { get; }

TargetType

The type the method was looked up on; null for a refused read, which calls no method.

public Type? TargetType { get; }

Written

What the expression wrote: the method name, or the spelling of a read (ref:rules, env:HOME).

public string Written { get; }

Constructors

ExpressionSandboxViolationException(string, Type)

Creates the exception for methodName on type.

ExpressionSandboxViolationException(string)

Creates the exception for a read the sandbox refuses, named as written: ref:rules (an object of the