Exception: Hermaeus::ConfigurationError
- Inherits:
-
Exception
- Object
- Exception
- Hermaeus::ConfigurationError
- Defined in:
- lib/hermaeus/error.rb
Overview
Public: Describes an error with the configuration file.
Instance Method Summary collapse
-
#initialize(message) ⇒ ConfigurationError
constructor
Public: Describes a configuraton error with a given message.
-
#to_s ⇒ Object
Public: Serializes the error to a String.
Constructor Details
#initialize(message) ⇒ ConfigurationError
Public: Describes a configuraton error with a given message.
message - an optional String describing what went wrong. Default value is “Hermaeus is incorrectly configured.”
8 9 10 |
# File 'lib/hermaeus/error.rb', line 8 def initialize @message = || "Hermaeus is incorrectly configured." end |
Instance Method Details
#to_s ⇒ Object
Public: Serializes the error to a String.
Returns a String representing the error.
15 16 17 |
# File 'lib/hermaeus/error.rb', line 15 def to_s @message end |