示例#1
0
        public static CompositionException CreateCannotGetExportedValue(ComposablePart part, ExportDefinition definition, Exception innerException)
        {
            Assumes.NotNull(part, definition, innerException);

            return(new CompositionException(
                       ErrorBuilder.CreateCannotGetExportedValue(part, definition, innerException)));
        }
示例#2
0
        public static CompositionException CreateCannotGetExportedValue(ComposablePart part, ExportDefinition definition, Exception innerException)
        {
            ArgumentNullException.ThrowIfNull(part);
            ArgumentNullException.ThrowIfNull(definition);
            ArgumentNullException.ThrowIfNull(innerException);

            return(new CompositionException(
                       ErrorBuilder.CreateCannotGetExportedValue(part, definition, innerException)));
        }
示例#3
0
        public static CompositionException CreateCannotGetExportedValue(ComposablePart part, ExportDefinition definition, Exception innerException)
        {
            if (part == null)
            {
                throw new ArgumentNullException(nameof(part));
            }

            if (definition == null)
            {
                throw new ArgumentNullException(nameof(definition));
            }

            if (innerException == null)
            {
                throw new ArgumentNullException(nameof(innerException));
            }

            return(new CompositionException(
                       ErrorBuilder.CreateCannotGetExportedValue(part, definition, innerException)));
        }