public static PropertyTreeException BinderConversionError(string propertyName, Type type, Exception exception, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.BinderConversionError(propertyName, type), exception, loc))); }
internal PropertyTreeException(string message, Exception innerException, FileLocation fileLocation) : base(BuildMessage(message, fileLocation, innerException as PropertyTreeException), innerException) { this.FileLocation = fileLocation; }
public static PropertyTreeException FailedToLoadFromSource(Uri uri, Exception ex, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.FailedToLoadFromSource(uri), ex, loc))); }
public static PropertyTreeException UnmatchedMembersGenericError(QualifiedName qualifiedName, Type componentType, FileLocation loc) { string msg; if (componentType.IsHiddenUX()) { msg = SR.BinderMissingPropertyNoType(qualifiedName); } else { msg = SR.BinderMissingProperty(qualifiedName, componentType); } return(Failure.Prepare(new PropertyTreeException(msg, null, loc))); }
public static PropertyTreeException NoTargetProviderMatches(Type type, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.NoTargetProviderMatches(type), null, loc))); }
public static PropertyTreeException BadAddChild(Type parentType, Exception ex, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.BadAddChild(parentType), ex, loc))); }
public static PropertyTreeException CouldNotBindGenericParameters(Type type, Exception ex, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.CouldNotBindGenericParameters(type), ex, loc))); }
public static PropertyTreeException CouldNotBindStreamingSource(Type type, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.CouldNotBindStreamingSource(type), null, loc))); }
public static PropertyTreeException NoAddMethodSupported(Type type, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.NoAddMethodSupported(type), null, loc))); }
public static PropertyTreeException DuplicatePropertyName(IEnumerable <QualifiedName> duplicates, FileLocation loc) { string text = string.Join(", ", duplicates); return(Failure.Prepare(new PropertyTreeException(SR.DuplicatePropertyName(text), null, loc))); }
public static PropertyTreeException BadTargetProviderDirective(Exception ex, FileLocation loc) { return(Failure.Prepare(new PropertyTreeException(SR.BadTargetProviderDirective(), ex, loc))); }