# # ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Exception' class App42BadParameterException < App42Exception 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 == 3 super(args[0]) self::initialize3(args[0], args[1], args[2]) end end def initialize1(detailMessage) # super(detailMessage) end def initialize3(detailMessage, http_error_code, app_error_code) super(detailMessage,http_error_code,app_error_code) end end