Skip to content
Browse files

Used correct exception for null args.

  • Loading branch information...
1 parent c46ce0c commit 4edb15c5ab4dd68adccc5c584fcdffb53af6dd9f ddossot committed May 31, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 NxBRE3/Source/InferenceEngine/IO/QueryResultsExporter.cs
View
4 NxBRE3/Source/InferenceEngine/IO/QueryResultsExporter.cs
@@ -18,10 +18,10 @@ public abstract class QueryResultsExporter
public static void ExportResults(IList<IList<Fact>> results, IFactBaseAdapter factBaseAdapter, string factBaseLabel) {
if (factBaseAdapter == null) {
- throw new ApplicationException("A non-null fact base adapter must be provided");
+ throw new ArgumentNullException("A non-null fact base adapter must be provided");
}
if (factBaseLabel == null) {
- throw new ApplicationException("A non-null fact base label must be provided");
+ throw new ArgumentNullException("A non-null fact base label must be provided");
}
List<Fact> flattenedResults = new List<Fact>();

0 comments on commit 4edb15c

Please sign in to comment.
Something went wrong with that request. Please try again.