Exception: AutotaskApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AutotaskApi::Error
- Defined in:
- lib/autotask_api.rb
Instance Method Summary collapse
-
#initialize(msg) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg) ⇒ Error
Returns a new instance of Error.
13 14 15 16 17 18 19 20 |
# File 'lib/autotask_api.rb', line 13 def initialize(msg) # extract SOAP Exception message if present if msg.include?('[SoapException:') msg = msg[/\[SoapException:(.*?)\]/, 1]&.strip end super(msg) end |