ConfigException

Description

sealed class Tinman.Core.Config.ConfigException

Derived from

TinmanException

Exception class for errors that are specific to the configuration API.

Public / Constructors

Cannot​Build​Type


public static method CannotBuildType → (3)

source in : string

Error source tag.

typeName in : string

Full name of the config type being built.

message in : string

The error message.

returns → ConfigException

The ready-to-throw exception.

An error has occurred while building a new config type.

Cannot​Implement


public static method CannotImplement → (2)

source in : string

Error source tag.

name in : string

The function name.

returns → ConfigException

The ready-to-throw exception.

An external implementation cannot be provided for a script function, because it is already implemented in script code.

Cannot​Instantiate​Abstract​Class


public static method CannotInstantiateAbstractClass → (2)

source in : string

Error source tag.

type in : ClassType

The abstract class type.

returns → ConfigException

The ready-to-throw exception.

Abstract classes cannot be instantiated (ConfigValue.New2).

Cannot​Resolve​Name


public static method CannotResolveName → (2)

source in : string

Error source tag.

name in : string

The identifier.

returns → ConfigException

The ready-to-throw exception.

An identifier cannot be resolved.

External​Function​Error


public static method ExternalFunctionError → (3)

source in : string

Error source tag.

functionName in : string

Full name of the external config function.

error in : TinmanError

The error that has occurred.

returns → ConfigException

The ready-to-throw exception.

An unexpected error has occurred while calling an external function.

Failed​To​Initialize


public static method FailedToInitialize → (3)

source in : string

Error source tag.

type in : ConfigType

The config type.

cause in : Exception

The initialization error.

returns → ConfigException

The ready-to-throw exception.

Initialization of the configured value has failed.

Immutable


public static method Immutable → (1)

source in : string

Error source tag.

returns → ConfigException

The ready-to-throw exception.

A config value is immutable.

Infinite​Loop


public static method InfiniteLoop → (2)

source in : string

Error source tag.

expr in : ConfigExpression

The config expression.

returns → ConfigException

The ready-to-throw exception.

A config expression causes an infinite loop when being evaluated.

Invalid​Call


public static method InvalidCall → (3)

source in : string

Error source tag.

function in : ConfigMember

The function name.

message in : string

Additional error message.

returns → ConfigException

The ready-to-throw exception.

A function call is invalid.

Missing​Configurator


public static method MissingConfigurator → (2)

source in : string

Error source tag.

type in : ConfigType

The config type.

returns → ConfigException

The ready-to-throw exception.

The config type must have a configurator object.

Must​Be​Array​Type


public static method MustBeArrayType → (2)

source in : string

Error source tag.

type in : ConfigType

The config type.

returns → ConfigException

The ready-to-throw exception.

The config type must be an array type.

Must​Be​Class​Type


public static method MustBeClassType → (2)

source in : string

Error source tag.

type in : ConfigType

The config type.

returns → ConfigException

The ready-to-throw exception.

The config type must be a class.

Must​Be​Enum​Type


public static method MustBeEnumType → (2)

source in : string

Error source tag.

type in : ConfigType

The config type.

returns → ConfigException

The ready-to-throw exception.

The config type must be an enum type.

Must​Be​LValue


public static method MustBeLValue → (2)

source in : string

Error source tag.

expr in : ConfigExpression

The config expression.

returns → ConfigException

The ready-to-throw exception.

An assignment target expression is not an L-value.

No​Such​Field


public static method NoSuchField → (3)

source in : string

Error source tag.

type in : ConfigType

The config type.

fieldName in : string

The field name.

returns → ConfigException

The ready-to-throw exception.

A class field of the given name does not exist.

No​Such​Script


public static method NoSuchScript → (2)

source in : string

Error source tag.

scriptName in : string

The config script name.

returns → ConfigException

The ready-to-throw exception.

The config domain does not contain a config script of the given name.

No​Such​Type


public static method NoSuchType → (2)

source in : string

Error source tag.

name in : string

The config type name.

returns → ConfigException

The ready-to-throw exception.

A config type of the given name does not exist.

Not​Assignable


public static method NotAssignable → (3)

source in : string

Error source tag.

in : ConfigType

The source type.

in : ConfigType

The target type.

returns → ConfigException

The ready-to-throw exception.

The type in is not assignable to type in.

Not​Convertible

3 overloads


public static method NotConvertible1 → (3)

source in : string

Error source tag.

in : ConfigType

The source type.

in : ConfigType

The target type.

returns → ConfigException

The ready-to-throw exception.

The type in is not convertible to type in.


public static method NotConvertible2 → (3)

source in : string

Error source tag.

type in : ConfigType

The config type.

value in : string

The inconvertible string value.

returns → ConfigException

The ready-to-throw exception.

The given string value is not convertible to type type in.


public static method NotConvertible3 → (3)

source in : string

Error source tag.

type in : ConfigType

The config type.

value in : float64

The inconvertible number value.

returns → ConfigException

The ready-to-throw exception.

The given number value is not convertible to type type in.

Null


public static method Null → (1)

source in : string

Error source tag.

returns → ConfigException

The ready-to-throw exception.

A config value is null.

Out​Of​Range


public static method OutOfRange → (4)

source in : string

Error source tag.

index in : int32

The bad index value.

minimum in : int32

Minimum allowed index value (inclusive).

maximum in : int32

Maximum allowed index value (exclusive).

returns → ConfigException

The ready-to-throw exception.

An index is out of range.

Type​Already​Exists


public static method TypeAlreadyExists → (2)

source in : string

Error source tag.

typeName in : string

Full name of the config type.

returns → ConfigException

The ready-to-throw exception.

A config type of the given already exists.

Virtual​Field​Error


public static method VirtualFieldError → (4)

source in : string

Error source tag.

typeName in : string

Full name of the config type that contains the virtual field.

fieldName in : string

The field name.

error in : TinmanError

The error that has occurred.

returns → ConfigException

The ready-to-throw exception.

An unexpected error has occurred while getting the value of a virtual field.