Class AmbiguousTypeException
Represents errors that occur when the value of a required System.Type argument cannot be resolved from context.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class AmbiguousTypeException : Exception, ISerializable, _Exception
Constructors
AmbiguousTypeException()
Initializes a new instance of the AmbiguousTypeException class.
Declaration
public AmbiguousTypeException()
AmbiguousTypeException(SerializationInfo, StreamingContext)
Initializes a new instance with serialized data.
Declaration
protected AmbiguousTypeException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized object data. |
System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. |
AmbiguousTypeException(String)
Initializes a new instance of the AmbiguousTypeException class with a specified error message.
Declaration
public AmbiguousTypeException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
AmbiguousTypeException(String, Exception)
Initializes a new instance of the AmbiguousTypeException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public AmbiguousTypeException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.Exception | innerException | The inner exception that is the cause of the current exception. |