Class RegenerateMapException
Raised by map generation steps if they detect that an invalid state (that can occasionally happen) is detected, and the map should be regenerated. Automatically used by the ConfigAndGenerateSafe(Action<Generator>, int) and ConfigAndGetStageEnumeratorSafe(Action<Generator>, int) functions.
Implements
Inherited Members
Namespace: GoRogue.MapGeneration
Assembly: GoRogue.dll
Syntax
public class RegenerateMapException : Exception, ISerializable
Constructors
View SourceRegenerateMapException()
Creates map regeneration exception with no message.
Declaration
public RegenerateMapException()
RegenerateMapException(string)
Creates a map regeneration exception with a customized message.
Declaration
public RegenerateMapException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
RegenerateMapException(string, Exception)
Creates a map regeneration exception with a customized message an inner exception.
Declaration
public RegenerateMapException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | |
Exception | innerException |