summaryrefslogtreecommitdiff
path: root/SA_POP/SANet/SANet_Exceptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SA_POP/SANet/SANet_Exceptions.cpp')
-rw-r--r--SA_POP/SANet/SANet_Exceptions.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/SA_POP/SANet/SANet_Exceptions.cpp b/SA_POP/SANet/SANet_Exceptions.cpp
new file mode 100644
index 00000000000..e394a8767f7
--- /dev/null
+++ b/SA_POP/SANet/SANet_Exceptions.cpp
@@ -0,0 +1,47 @@
+// -*- C++ -*-
+// $Id$
+
+//=============================================================================
+/**
+ * @file SANet_Exceptions.cpp
+ *
+ * This file contains the exception implementations for spreading activation
+ * networks.
+ *
+ * @author John S. Kinnebrew <john.s.kinnebrew@vanderbilt.edu>
+ */
+//=============================================================================
+
+#include "SANet_Exceptions.h"
+
+using namespace SANet;
+
+Invalid_Step::Invalid_Step (void)
+: std::invalid_argument ("Invalid step argument")
+{
+ // Nothing to do.
+};
+
+Update_Error::Update_Error (void)
+: std::logic_error ("Update error")
+{
+ // Nothing to do.
+};
+
+Duplicate_ID::Duplicate_ID (void)
+: std::invalid_argument ("Duplicate ID provided for node creation")
+{
+ // Nothing to do.
+};
+
+Insertion_Error::Insertion_Error (void)
+: std::logic_error ("Error while attempting to insert a value in map or set")
+{
+ // Nothing to do.
+};
+
+UnknownNode::UnknownNode (void)
+: std::invalid_argument ("Unknown node lookup")
+{
+ // Nothing to do.
+};