Created
December 11, 2012 15:48
-
-
Save profelis/4259497 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 175f69c31012074e4600d6335936e69ae47d2d93 Mon Sep 17 00:00:00 2001 | |
From: profelis <system.grand@gmail.com> | |
Date: Wed, 12 Dec 2012 17:58:34 +0200 | |
Subject: [PATCH] [jeash] Error fixes | |
--- | |
jeash/errors/ArgumentError.hx | 5 ++++- | |
jeash/errors/IllegalOperationError.hx | 10 ++++++++++ | |
jeash/errors/RangeError.hx | 12 ++++++++++++ | |
jeash/errors/SecurityError.hx | 12 ++++++++++++ | |
jeash/errors/TypeError.hx | 12 ++++++++++++ | |
5 files changed, 50 insertions(+), 1 deletion(-) | |
create mode 100644 jeash/errors/IllegalOperationError.hx | |
create mode 100644 jeash/errors/RangeError.hx | |
create mode 100644 jeash/errors/SecurityError.hx | |
create mode 100644 jeash/errors/TypeError.hx | |
diff --git a/jeash/errors/ArgumentError.hx b/jeash/errors/ArgumentError.hx | |
index 783263f..b340897 100644 | |
--- a/jeash/errors/ArgumentError.hx | |
+++ b/jeash/errors/ArgumentError.hx | |
@@ -3,5 +3,8 @@ package jeash.errors; | |
class ArgumentError extends Error | |
{ | |
- | |
+ public function new(inMessage:String = "") | |
+ { | |
+ super(inMessage); | |
+ } | |
} | |
\ No newline at end of file | |
diff --git a/jeash/errors/IllegalOperationError.hx b/jeash/errors/IllegalOperationError.hx | |
new file mode 100644 | |
index 0000000..369bf3b | |
--- /dev/null | |
+++ b/jeash/errors/IllegalOperationError.hx | |
@@ -0,0 +1,10 @@ | |
+package jeash.errors; | |
+ | |
+ | |
+class IllegalOperationError extends Error | |
+{ | |
+ public function new(inMessage:String = "") | |
+ { | |
+ super(inMessage, 0); | |
+ } | |
+} | |
\ No newline at end of file | |
diff --git a/jeash/errors/RangeError.hx b/jeash/errors/RangeError.hx | |
new file mode 100644 | |
index 0000000..820e24d | |
--- /dev/null | |
+++ b/jeash/errors/RangeError.hx | |
@@ -0,0 +1,12 @@ | |
+package jeash.errors; | |
+ | |
+ | |
+class RangeError extends Error | |
+{ | |
+ | |
+ public function new(inMessage:String = "") | |
+ { | |
+ super(inMessage, 0); | |
+ } | |
+ | |
+} | |
\ No newline at end of file | |
diff --git a/jeash/errors/SecurityError.hx b/jeash/errors/SecurityError.hx | |
new file mode 100644 | |
index 0000000..6b08d1c | |
--- /dev/null | |
+++ b/jeash/errors/SecurityError.hx | |
@@ -0,0 +1,12 @@ | |
+package jeash.errors; | |
+ | |
+ | |
+class SecurityError extends Error | |
+{ | |
+ | |
+ public function new(inMessage:String = "") | |
+ { | |
+ super(inMessage, 0); | |
+ } | |
+ | |
+} | |
\ No newline at end of file | |
diff --git a/jeash/errors/TypeError.hx b/jeash/errors/TypeError.hx | |
new file mode 100644 | |
index 0000000..5200ad6 | |
--- /dev/null | |
+++ b/jeash/errors/TypeError.hx | |
@@ -0,0 +1,12 @@ | |
+package jeash.errors; | |
+ | |
+ | |
+class TypeError extends Error | |
+{ | |
+ | |
+ public function new(inMessage:String = "") | |
+ { | |
+ super(inMessage, 0); | |
+ } | |
+ | |
+} | |
\ No newline at end of file | |
-- | |
1.7.10.2 (Apple Git-33) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment