CompositionException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the exception that is thrown when one or more errors occur during composition in a CompositionContainer object.
public ref class CompositionException : Exception
public class CompositionException : Exception
type CompositionException = class
inherit Exception
Public Class CompositionException
Inherits Exception
- Inheritance
- Derived
Constructors
| Name | Description |
|---|---|
| CompositionException() |
Initializes a new instance of the CompositionException class. |
| CompositionException(IEnumerable<CompositionError>) |
Initializes a new instance of the CompositionException class with the specified collection of composition errors. |
| CompositionException(String, Exception) |
Initializes a new instance of the CompositionException class with the specified error message and the exception that is the cause of this exception. |
| CompositionException(String) |
Initializes a new instance of the CompositionException class with the specified error message. |
Properties
| Name | Description |
|---|---|
| Errors |
Gets or sets a collection of CompositionError objects that describe the errors associated with the CompositionException. |
| Message |
Gets a message that describes the exception. |
| RootCauses |
Gets a collection that contains the initial sources of this exception. |