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
[Serializable]
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 |
|---|---|---|
| SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
| 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 |
|---|---|---|
| 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 |
|---|---|---|
| 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 (
|