Class ModelException<TModelTypes>
Exception class that is designed to capture exception information during the creation of a model.
Implements
Inherited Members
Namespace: CodeFactory
Assembly: CodeFactory.dll
Syntax
public class ModelException<TModelTypes> : CodeFactoryException, ISerializable where TModelTypes : struct, IComparable, IFormattable, IConvertible
Type Parameters
| Name | Description |
|---|---|
| TModelTypes | Target enumeration of model types that this exception will support. |
Constructors
ModelException(TModelTypes)
Creates a model exception.
Declaration
public ModelException(TModelTypes modelType)
Parameters
| Type | Name | Description |
|---|---|---|
| TModelTypes | modelType | The type of model that had issues |
ModelException(TModelTypes, string)
Creates a model exception.
Declaration
public ModelException(TModelTypes modelType, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| TModelTypes | modelType | The type of model that had issues |
| string | message | The error message to be captured by the exception |
ModelException(TModelTypes, string, Exception)
Creates a model exception.
Declaration
public ModelException(TModelTypes modelType, string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| TModelTypes | modelType | The type of model that had issues |
| string | message | The error message to be captured by the exception |
| Exception | innerException | The inner exception that occurred and to be added to this exception. |
Properties
ModelType
The source type of the model that had an error when loading.
Declaration
public TModelTypes ModelType { get; }
Property Value
| Type | Description |
|---|---|
| TModelTypes |