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(SerializationInfo, StreamingContext)
Creates an exception based on serialization context.
Declaration
protected ItemNotDefinedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
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. |