Class ItemNotDefinedException<TBlueprintID>
Exception thrown by AdvancedFactory<TBlueprintID, TBlueprintConfig, TProduced> or Factory<TBlueprintID, TProduced> objects when a blueprint that doesn't exist is used.
Implements
Inherited Members
Namespace: GoRogue.Factories
Assembly: GoRogue.dll
Syntax
public class ItemNotDefinedException<TBlueprintID> : Exception, ISerializable
Type Parameters
Name | Description |
---|---|
TBlueprintID |
Constructors
View SourceItemNotDefinedException()
Creates an exception with default message.
Declaration
public ItemNotDefinedException()
ItemNotDefinedException(string, Exception)
Creates an exception with the specified inner exception and message.
Declaration
public ItemNotDefinedException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | Exception message |
Exception | innerException | Exception that caused this exception |
ItemNotDefinedException(TBlueprintID)
Creates an exception with a message based on the specified factory ID.
Declaration
public ItemNotDefinedException(TBlueprintID factoryId)
Parameters
Type | Name | Description |
---|---|---|
TBlueprintID | factoryId | Factory id that caused the error. |