Exception: Twoffein::Server::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/twoffein-client/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, message) ⇒ Error

Returns a new instance of Error.



5
6
7
8
# File 'lib/twoffein-client/exceptions.rb', line 5

def initialize(type, message)
  @type = type
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/twoffein-client/exceptions.rb', line 4

def message
  @message
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/twoffein-client/exceptions.rb', line 4

def type
  @type
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/twoffein-client/exceptions.rb', line 10

def to_s
  @type.to_s
end