lib/poolparty/exceptions/MasterException.rb in fairchild-poolparty-1.1.5 vs lib/poolparty/exceptions/MasterException.rb in fairchild-poolparty-1.2.12
- old
+ new
@@ -1,10 +1,10 @@
class MasterException < Exception
- EXCEPTION_MESSAGES = {
+ @messages = {
:no_ip => "Master does not have an ip or has not been launched"
}
attr_reader :message
def initialize(type=:no_ip, note="")
- @message = "Master Exception: #{EXCEPTION_MESSAGES[type]} #{note}"
+ @message = "Master Exception: #{@messages[type]} #{note}"
end
end
\ No newline at end of file