Exception: App42Exception

Inherits:
Exception
  • Object
show all
Defined in:
lib/App42_Ruby_API/App42Exception.rb

Overview


Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ App42Exception

Returns a new instance of App42Exception.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/App42_Ruby_API/App42Exception.rb', line 9

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

Instance Attribute Details

#app_error_codeObject

Returns the value of attribute app_error_code.



8
9
10
# File 'lib/App42_Ruby_API/App42Exception.rb', line 8

def app_error_code
  @app_error_code
end

#detailMessageObject

Returns the value of attribute detailMessage.



8
9
10
# File 'lib/App42_Ruby_API/App42Exception.rb', line 8

def detailMessage
  @detailMessage
end

#http_error_codeObject

Returns the value of attribute http_error_code.



8
9
10
# File 'lib/App42_Ruby_API/App42Exception.rb', line 8

def http_error_code
  @http_error_code
end

Instance Method Details

#initialize1(detailMessage) ⇒ Object



24
25
26
# File 'lib/App42_Ruby_API/App42Exception.rb', line 24

def initialize1(detailMessage)
  @detailMessage = detailMessage
end

#initialize2(http_error_code, app_error_code) ⇒ Object



28
29
30
31
# File 'lib/App42_Ruby_API/App42Exception.rb', line 28

def initialize2(http_error_code,app_error_code)
  @http_error_code = http_error_code
  @pp_error_code = app_error_code
end

#initialize3(detailMessage, http_error_code, app_error_code) ⇒ Object



33
34
35
36
37
# File 'lib/App42_Ruby_API/App42Exception.rb', line 33

def initialize3(detailMessage, http_error_code, app_error_code)
  @http_error_code = http_error_code
  @app_error_code = app_error_code
  @detailMessage = detailMessage
end