Sha256: b5a461faa08e6611fa7505608e1fbcf5ae0cc1282fc0a8bcf7a4bc5275cefca0
Contents?: true
Size: 459 Bytes
Versions: 31
Compression:
Stored size: 459 Bytes
Contents
# encoding: utf-8 module Libis module Services class SoapError < Exception attr_accessor :code, :text, :detail, :name def initialize(error) @code = error[:fault][:faultcode] rescue nil @text = error[:fault][:faultstring] rescue nil @detail = error[:fault][:detail] rescue nil @name = @detail.first.first rescue nil end def message "#{code}:#{name} #{text}" end end end end
Version data entries
31 entries across 31 versions & 1 rubygems