Exception: Hermaeus::ConfigurationError

Inherits:
Exception
  • Object
show all
Defined in:
lib/hermaeus/error.rb

Overview

Public: Describes an error with the configuration file.

Instance Method Summary collapse

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
	@message = message || "Hermaeus is incorrectly configured."
end

Instance Method Details

#to_sObject

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