Class MissingContextComponentException
Raised by GenerationStep when required components are not present when PerformStep(GenerationContext) is called.
Implements
Inherited Members
Namespace: GoRogue.MapGeneration
Assembly: GoRogue.dll
Syntax
public class MissingContextComponentException : Exception, ISerializable
Constructors
View SourceMissingContextComponentException()
Creates an empty exception.
Declaration
public MissingContextComponentException()
MissingContextComponentException(GenerationStep, Type, string?)
Creates a new exception with a helpful error message.
Declaration
public MissingContextComponentException(GenerationStep step, Type requiredComponentType, string? requiredComponentTag)
Parameters
Type | Name | Description |
---|---|---|
GenerationStep | step | Generation step that failed to find its required components. |
Type | requiredComponentType | Type of the required component that was not found. |
string | requiredComponentTag | Tag of the required component that was not found, or null if no tag was required. |
MissingContextComponentException(string)
Creates an exception with a fully customized message.
Declaration
public MissingContextComponentException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
MissingContextComponentException(string, Exception)
Creates an exception with a fully customized message and inner exception.
Declaration
public MissingContextComponentException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | |
Exception | innerException |
Fields
View SourceRequiredComponentTag
Tag of the required component that was not found, or null if no tag was required.
Declaration
public readonly string? RequiredComponentTag
Field Value
Type | Description |
---|---|
string |
RequiredComponentType
Type of the required component that was not found.
Declaration
public readonly Type? RequiredComponentType
Field Value
Type | Description |
---|---|
Type |
Step
Generation step that failed to find its required components.
Declaration
public readonly GenerationStep? Step
Field Value
Type | Description |
---|---|
GenerationStep |