Exception: MasterException

Inherits:
Exception show all
Defined in:
lib/poolparty/exceptions/MasterException.rb

Constant Summary collapse

EXCEPTION_MESSAGES =
{
  :no_ip => "Master does not have an ip or has not been launched"
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = :no_ip, note = "") ⇒ MasterException

Returns a new instance of MasterException.



7
8
9
# File 'lib/poolparty/exceptions/MasterException.rb', line 7

def initialize(type=:no_ip, note="")
  @message = "Master Exception: #{EXCEPTION_MESSAGES[type]} #{note}"
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/poolparty/exceptions/MasterException.rb', line 5

def message
  @message
end