Class ModelBindingException
The exception that is thrown when an error occurs while binding a source to a model.
Inheritance
Namespace: Umbraco.Cms.Web.Common.ModelBinders
Assembly: Umbraco.Web.Common.dll
Syntax
public class ModelBindingException : Exception
Constructors
View SourceModelBindingException()
Initializes a new instance of the Model
Declaration
public ModelBindingException()
ModelBindingException(SerializationInfo, StreamingContext)
Initializes a new instance of the Model
Declaration
protected ModelBindingException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The System. |
System. |
context | The System. |
ModelBindingException(String)
Initializes a new instance of the Model
Declaration
public ModelBindingException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The message that describes the error. |
ModelBindingException(String, Exception)
Initializes a new instance of the Model
Declaration
public ModelBindingException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference ( langword_csharp_Nothing in Visual Basic) if no inner exception is specified. |