Class ModelException<TModelTypes>
Exception class that is designed to capture exception information during the creation of a model.
Inherited Members
Namespace: CodeFactory
Assembly: CodeFactory.dll
Syntax
public class ModelException<TModelTypes> : CodeFactoryException, ISerializable, _Exception where TModelTypes : struct, IComparable, IFormattable, IConvertible
Type Parameters
Name | Description |
---|---|
TModelTypes | Target enumeration of model types that this exception will support. |
Constructors
| Improve this Doc View SourceModelException(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. |
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)
Creates a model exception.
Declaration
public ModelException(TModelTypes modelType)
Parameters
Type | Name | Description |
---|---|---|
TModelTypes | modelType | The type of model that had issues |
Properties
| Improve this Doc View SourceModelType
The source type of the model that had an error when loading.
Declaration
public TModelTypes ModelType { get; }
Property Value
Type | Description |
---|---|
TModelTypes |