Sha256: 471e889042e965f15d5de3264bbd42c1deaaaeb0f814a3f19c8e378ecb60f6ce
Contents?: true
Size: 1021 Bytes
Versions: 2
Compression:
Stored size: 1021 Bytes
Contents
# # ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- class App42Exception < Exception attr_accessor :http_error_code, :app_error_code, :detailMessage def initialize(*args) if args.size == 1 super(args[0]) self::initialize1(args[0]) elsif args.size == 2 super(args[0]) self::initialize2(args[0], args[1]) elsif args.size == 3 super(args[0]) self::initialize3(args[0], args[1], args[2]) end end def initialize1(detailMessage) @detailMessage = detailMessage end def initialize2(http_error_code,app_error_code) @http_error_code = http_error_code @pp_error_code = app_error_code end def initialize3(detailMessage, http_error_code, app_error_code) @http_error_code = http_error_code @app_error_code = app_error_code @detailMessage = detailMessage end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
App42_Ruby_API-0.8.4 | lib/App42_Ruby_API/App42Exception.rb |
App42_RUBY_SDK-0.8.3 | lib/App42Exception.rb |