Exception: HatiConfig::TypeCheckerError
- Inherits:
-
StandardError
- Object
- StandardError
- HatiConfig::TypeCheckerError
- Defined in:
- lib/hati_config/errors.rb
Overview
Custom error raised when a type definition is missing.
Instance Method Summary collapse
-
#definition_error_msg(type) ⇒ String
Generates the error message for the exception.
-
#initialize(type) ⇒ TypeCheckerError
constructor
Initializes a new TypeCheckerError.
Constructor Details
#initialize(type) ⇒ TypeCheckerError
Initializes a new TypeCheckerError.
39 40 41 |
# File 'lib/hati_config/errors.rb', line 39 def initialize(type) super(definition_error_msg(type)) end |
Instance Method Details
#definition_error_msg(type) ⇒ String
Generates the error message for the exception.
47 48 49 |
# File 'lib/hati_config/errors.rb', line 47 def definition_error_msg(type) "No type Definition for: <#{type}> type" end |