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 ModelBindingException class.
Declaration
public ModelBindingException()
ModelBindingException(SerializationInfo, StreamingContext)
Initializes a new instance of the ModelBindingException class.
Declaration
protected ModelBindingException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
ModelBindingException(String)
Initializes a new instance of the ModelBindingException class.
Declaration
public ModelBindingException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
ModelBindingException(String, Exception)
Initializes a new instance of the ModelBindingException class.
Declaration
public ModelBindingException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | 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. |