Exception: PlayNicely::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/playnicely.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, error_message = nil) ⇒ Error

Returns a new instance of Error.



20
21
22
23
# File 'lib/playnicely.rb', line 20

def initialize(type, error_message=nil)
  @error_type = type
  @error_message = error_message
end

Instance Attribute Details

#error_messageObject (readonly)

Returns the value of attribute error_message.



19
20
21
# File 'lib/playnicely.rb', line 19

def error_message
  @error_message
end

#error_typeObject (readonly)

Returns the value of attribute error_type.



19
20
21
# File 'lib/playnicely.rb', line 19

def error_type
  @error_type
end