Exemplo n.º 1
0
 public MetadataNotCompliantReferenceException(IMetadataReference reference, IMetadata metadata, string message, Exception innerException)
     : base(reference, null, string.IsNullOrEmpty(message) ? xres.FormatXResource(typeof(MetadataNotCompliantReferenceException), null, metadata.Fluent().NullCond(i => i.GetType()), reference.Fluent().NullCond(i => i.TargetMetadataType)) : xres.FormatXResource(typeof(MetadataNotCompliantReferenceException), "WithMessage", metadata.Fluent().NullCond(i => i.GetType()), reference.Fluent().NullCond(i => i.TargetMetadataType), message), innerException)
 {
     _metadata         = metadata;
     _metadataAsString = metadata?.ToString();
 }