summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2015-05-26 20:07:16 -0400
committerFlaviu Tamas <tamasflaviu@gmail.com>2015-06-07 13:13:04 -0400
commitca81749f2ab3af9d3d86b865c2e4dfa116f7aad3 (patch)
tree34008efbc9b9b2f042a2c35d9294086baf39345a /lib/impure
parenta707f8de65fb9ece674b926a529044fc206e43b3 (diff)
downloadNim-ca81749f2ab3af9d3d86b865c2e4dfa116f7aad3.tar.gz
Rename RegexException according to NEP1
Diffstat (limited to 'lib/impure')
-rw-r--r--lib/impure/nre.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim
index 5a6050ac2..6363f278a 100644
--- a/lib/impure/nre.nim
+++ b/lib/impure/nre.nim
@@ -191,22 +191,22 @@ type
   Captures* = distinct RegexMatch
   CaptureBounds* = distinct RegexMatch
 
-  RegexException* = ref object of Exception
+  RegexError* = ref object of Exception
 
-  RegexInternalError* = ref object of RegexException
+  RegexInternalError* = ref object of RegexError
     ## Internal error in the module, this probably means that there is a bug
 
-  InvalidUnicodeError* = ref object of RegexException
+  InvalidUnicodeError* = ref object of RegexError
     ## Thrown when matching fails due to invalid unicode in strings
     pos*: int  ## the location of the invalid unicode in bytes
 
-  SyntaxError* = ref object of RegexException
+  SyntaxError* = ref object of RegexError
     ## Thrown when there is a syntax error in the
     ## regular expression string passed in
     pos*: int  ## the location of the syntax error in bytes
     pattern*: string  ## the pattern that caused the problem
 
-  StudyError* = ref object of RegexException
+  StudyError* = ref object of RegexError
     ## Thrown when studying the regular expression failes
     ## for whatever reason. The message contains the error
     ## code.