Class InvalidCompositionException
The exception that is thrown when a composition is invalid.
Inheritance
Namespace: Umbraco.Cms.Core.Exceptions
Assembly: Umbraco.Core.dll
Syntax
public class InvalidCompositionException : Exception
Constructors
View SourceInvalidCompositionException()
Initializes a new instance of the InvalidCompositionException class.
Declaration
public InvalidCompositionException()
InvalidCompositionException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidCompositionException class.
Declaration
protected InvalidCompositionException(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. |
InvalidCompositionException(String)
Initializes a new instance of the InvalidCompositionException class.
Declaration
public InvalidCompositionException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
InvalidCompositionException(String, Exception)
Initializes a new instance of the InvalidCompositionException class.
Declaration
public InvalidCompositionException(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. |
InvalidCompositionException(String, String, String[])
Initializes a new instance of the InvalidCompositionException class.
Declaration
public InvalidCompositionException(string contentTypeAlias, string addedCompositionAlias, string[] propertyTypeAliases)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentTypeAlias | The content type alias. |
System.String | addedCompositionAlias | The added composition alias. |
System.String[] | propertyTypeAliases | The property type aliases. |
InvalidCompositionException(String, String, String[], String[])
Initializes a new instance of the InvalidCompositionException class.
Declaration
public InvalidCompositionException(string contentTypeAlias, string addedCompositionAlias, string[] propertyTypeAliases, string[] propertyGroupAliases)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentTypeAlias | The content type alias. |
System.String | addedCompositionAlias | The added composition alias. |
System.String[] | propertyTypeAliases | The property type aliases. |
System.String[] | propertyGroupAliases | The property group aliases. |
InvalidCompositionException(String, String[])
Initializes a new instance of the InvalidCompositionException class.
Declaration
public InvalidCompositionException(string contentTypeAlias, string[] propertyTypeAliases)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentTypeAlias | The content type alias. |
System.String[] | propertyTypeAliases | The property type aliases. |
Properties
View SourceAddedCompositionAlias
Gets the added composition alias.
Declaration
public string AddedCompositionAlias { get; }
Property Value
Type | Description |
---|---|
System.String | The added composition alias. |
ContentTypeAlias
Gets the content type alias.
Declaration
public string ContentTypeAlias { get; }
Property Value
Type | Description |
---|---|
System.String | The content type alias. |
PropertyGroupAliases
Gets the property group aliases.
Declaration
public string[] PropertyGroupAliases { get; }
Property Value
Type | Description |
---|---|
System.String[] | The property group aliases. |
PropertyTypeAliases
Gets the property type aliases.
Declaration
public string[] PropertyTypeAliases { get; }
Property Value
Type | Description |
---|---|
System.String[] | The property type aliases. |
Methods
View SourceGetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(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. |