diff --git a/lib/parser.rb b/lib/parser.rb
index <HASH>..<HASH> 100644
--- a/lib/parser.rb
+++ b/lib/parser.rb
@@ -1,8 +1,5 @@
 module WebVTT
 
-  class MalformedFile < RuntimeError; end
-  class InputError < RuntimeError; end
-
   def self.read(file)
     File.new(file)
   end
diff --git a/lib/segmenter.rb b/lib/segmenter.rb
index <HASH>..<HASH> 100644
--- a/lib/segmenter.rb
+++ b/lib/segmenter.rb
@@ -1,7 +1,5 @@
 module WebVTT
 
-  class InputError < RuntimeError; end
-
   def self.segment(input, options={})
     if input.is_a?(String)
       input = File.new(input)
diff --git a/lib/webvtt.rb b/lib/webvtt.rb
index <HASH>..<HASH> 100644
--- a/lib/webvtt.rb
+++ b/lib/webvtt.rb
@@ -4,5 +4,10 @@ if defined?(Encoding)
   Encoding.default_internal = Encoding.default_external = "UTF-8"
 end
 
+module WebVTT
+  class MalformedFile < RuntimeError; end
+  class InputError < RuntimeError; end
+end
+
 require "parser"
 require "segmenter"
\ No newline at end of file
put exceptions class into webvtt.rb