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(string)
Initializes a new instance of the InvalidCompositionException class.
Declaration
public InvalidCompositionException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 |
|---|---|---|
| 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 (
|
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 |
|---|---|---|
| string | contentTypeAlias | The content type alias. |
| string | addedCompositionAlias | The added composition alias. |
| 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 |
|---|---|---|
| string | contentTypeAlias | The content type alias. |
| string | addedCompositionAlias | The added composition alias. |
| string[] | propertyTypeAliases | The property type aliases. |
| 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 |
|---|---|---|
| string | contentTypeAlias | The content type alias. |
| string[] | propertyTypeAliases | The property type aliases. |
Properties
View SourceAddedCompositionAlias
Gets the added composition alias.
Declaration
public string? AddedCompositionAlias { get; }
Property Value
| Type | Description |
|---|---|
| string | The added composition alias. |
ContentTypeAlias
Gets the content type alias.
Declaration
public string? ContentTypeAlias { get; }
Property Value
| Type | Description |
|---|---|
| string | The content type alias. |
PropertyGroupAliases
Gets the property group aliases.
Declaration
public string[]? PropertyGroupAliases { get; }
Property Value
| Type | Description |
|---|---|
| string[] | The property group aliases. |
PropertyTypeAliases
Gets the property type aliases.
Declaration
public string[]? PropertyTypeAliases { get; }
Property Value
| Type | Description |
|---|---|
| string[] | The property type aliases. |