Class ContentProviderNotFoundException
Thrown when a content provider cannot be found
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class ContentProviderNotFoundException : ArgumentException, _Exception, ISerializable
Remarks
This exception is commonly thrown when you are accessing a content provider that does not exist using DataFactory. For debugging scenarios you can use the ContentLink property for the source page of an exception.
Constructors
ContentProviderNotFoundException()
Initializes a new instance of the ContentProviderNotFoundException class.
Declaration
public ContentProviderNotFoundException()
ContentProviderNotFoundException(ContentReference)
Initializes a new instance of the ContentProviderNotFoundException class.
Declaration
public ContentProviderNotFoundException(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The page link. |
ContentProviderNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the ContentProviderNotFoundException class with serialized data.
Declaration
protected ContentProviderNotFoundException(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. |
ContentProviderNotFoundException(String)
Initializes the new instance of ContentProviderNotFoundException
Declaration
public ContentProviderNotFoundException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
ContentProviderNotFoundException(String, ContentReference)
Initializes a new instance of the ContentProviderNotFoundException class.
Declaration
public ContentProviderNotFoundException(string pageProviderName, ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
System.String | pageProviderName | Name of the page provider. |
ContentReference | contentLink | The page link. |
ContentProviderNotFoundException(String, Exception)
Initializes the new instance of ContentProviderNotFoundException
Declaration
public ContentProviderNotFoundException(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 exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
Properties
ContentLink
Gets the content link.
Declaration
public ContentReference ContentLink { get; }
Property Value
Type | Description |
---|---|
ContentReference | The content link. |