Permalink
Browse files

added Exceptions

  • Loading branch information...
1 parent 78790da commit 8dacc97081902d71c49c340ab3564a1e01d1f3d4 @fibo committed Mar 11, 2013
Showing with 16 additions and 0 deletions.
  1. +11 −0 lib/Exception/InvalidArguments.js
  2. +5 −0 lib/Exception/UnimplementedAbstractMethod.js
@@ -0,0 +1,11 @@
+
+function InvalidArguments() {
+
+ // TODO message attribute, and inherit from Generic Exception
+ // TODO emit error
+ // TODO also provide a listener
+ console.error('Invalid arguments');
+
+};
+
+
@@ -0,0 +1,5 @@
+
+function UnimplementedAbstractMethod() {
+
+};
+

0 comments on commit 8dacc97

Please sign in to comment.