Skip to content

Commit

Permalink
throwing not supported exceptions rather than not implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
craiggwilson committed Sep 20, 2012
1 parent 2097869 commit 0a32bef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/MongoDB.OData/Typed/TypedMetadata.cs
Expand Up @@ -75,7 +75,7 @@ public IEnumerable<ResourceType> GetDerivedTypes(ResourceType resourceType)

public ResourceAssociationSet GetResourceAssociationSet(ResourceSet resourceSet, ResourceType resourceType, ResourceProperty resourceProperty)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public bool HasDerivedTypes(ResourceType resourceType)
Expand Down
6 changes: 3 additions & 3 deletions src/MongoDB.OData/Typed/TypedQueryProvider.cs
Expand Up @@ -24,17 +24,17 @@ public bool IsNullPropagationRequired

public object GetOpenPropertyValue(object target, string propertyName)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public IEnumerable<KeyValuePair<string, object>> GetOpenPropertyValues(object target)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public object GetPropertyValue(object target, ResourceProperty resourceProperty)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public IQueryable GetQueryRootForResourceSet(ResourceSet resourceSet)
Expand Down
2 changes: 1 addition & 1 deletion src/MongoDB.OData/Typed/TypedResourceTypeAnnotation.cs
Expand Up @@ -6,7 +6,7 @@

namespace MongoDB.OData.Typed
{
public class TypedResourceTypeAnnotation
internal class TypedResourceTypeAnnotation
{
private readonly BsonClassMap _classMap;

Expand Down
9 changes: 4 additions & 5 deletions src/MongoDB.OData/Typed/TypedUpdateProvider.cs
Expand Up @@ -29,7 +29,7 @@ public TypedUpdateProvider(TypedDataSource currentDataSource, TypedMetadata meta

public void AddReferenceToCollection(object targetResource, string propertyName, object resourceToBeAdded)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public void ClearChanges()
Expand Down Expand Up @@ -114,7 +114,7 @@ public object GetValue(object targetResource, string propertyName)

public void RemoveReferenceFromCollection(object targetResource, string propertyName, object resourceToBeRemoved)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public object ResetResource(object targetResource)
Expand All @@ -132,7 +132,6 @@ public object ResetResource(object targetResource)

public object ResolveResource(object resource)
{
//we are passed the value we returned from GetResource
return resource;
}

Expand All @@ -143,12 +142,12 @@ public void SaveChanges()

public void SetConcurrencyValues(object resourceCookie, bool? checkForEquality, IEnumerable<KeyValuePair<string, object>> concurrencyValues)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public void SetReference(object targetResource, string propertyName, object propertyValue)
{
throw new NotImplementedException();
throw new NotSupportedException();
}

public void SetValue(object targetResource, string propertyName, object propertyValue)
Expand Down

0 comments on commit 0a32bef

Please sign in to comment.