lib/eddy/errors.rb in eddy-0.8.4 vs lib/eddy/errors.rb in eddy-0.9.0

- old
+ new

@@ -2,10 +2,22 @@ # Exceptions raised by Eddy. module Errors # Exceptions raised by Eddy inherit from Error. class Error < StandardError; end + # Exception raised when an issue occurs while generating code. + class BuildError < Error; end + + # Exception raised from a `render` method. + class RenderError < Error; end + + # Exception raised when a definition file can't be found. + class MissingDefinitionError < Error; end + + # Exception raised when a definition file can't be found. + class ParseError < Error; end + # @!group Element Validation Errors # Exception raised by descendents of {Eddy::Models::Element::Base}. class ElementValidationError < Error # @return [Eddy::Models::Element::Base] Element instance that raised the exception. @@ -97,17 +109,9 @@ end super(msg) end end - # @!endgroup Element Validation Errors + # @!endgroup - # Exception raised when an issue occurs while generating code. - class BuildError < Error; end - - # Exception raised from a `render` method. - class RenderError < Error; end - - # Exception raised when a definition file can't be found. - class MissingDefinitionError < Error; end end end