Exception: WashOut::Dispatcher::SOAPError

Inherits:
Exception
  • Object
show all
Defined in:
lib/wash_out/dispatcher.rb

Overview

A SOAPError exception can be raised to return a correct SOAP error response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil) ⇒ SOAPError

Returns a new instance of SOAPError.



10
11
12
13
# File 'lib/wash_out/dispatcher.rb', line 10

def initialize(message, code=nil)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



9
10
11
# File 'lib/wash_out/dispatcher.rb', line 9

def code
  @code
end