lib/csd/error.rb in csd-0.1.5 vs lib/csd/error.rb in csd-0.1.6
- old
+ new
@@ -1,6 +1,7 @@
-# encoding: utf-8
+# -*- encoding: UTF-8 -*-
+
module CSD
# In this module we will keep all types of errors in a readable hierarchy
#
module Error
@@ -22,11 +23,19 @@
module Argument
class NoApplication < CSDError; status_code(11); end
class NoAction < CSDError; status_code(12); end
end
+ # Errors in this module are related to the Application Module Framework
+ #
module Application
class OptionsSyntax < CSDError; status_code(200); end
+ end
+
+ # Errors in this module are raised by the User Interface
+ # TODO: This has to go :)
+ module UI
+ class Die < CSDError; status_code(1000); end
end
end
end
\ No newline at end of file