Exception: LolSoap::FaultRaised

Inherits:
Error
  • Object
show all
Defined in:
lib/lolsoap/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fault) ⇒ FaultRaised

Returns a new instance of FaultRaised.



7
8
9
# File 'lib/lolsoap/errors.rb', line 7

def initialize(fault)
  @fault = fault
end

Instance Attribute Details

#faultObject (readonly)

Returns the value of attribute fault.



5
6
7
# File 'lib/lolsoap/errors.rb', line 5

def fault
  @fault
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/lolsoap/errors.rb', line 11

def message
  "#{fault.reason}\n#{fault.detail}"
end