class AutotaskApi::Error

Public Class Methods

new(msg) click to toggle source
Calls superclass method
# 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