Exception: App42BadParameterException
- Inherits:
-
App42Exception
- Object
- Exception
- App42Exception
- App42BadParameterException
- Defined in:
- lib/App42BadParameterException.rb
Instance Attribute Summary collapse
-
#app_error_code ⇒ Object
Returns the value of attribute app_error_code.
-
#detailMessage ⇒ Object
Returns the value of attribute detailMessage.
-
#http_error_code ⇒ Object
Returns the value of attribute http_error_code.
Instance Method Summary collapse
-
#initialize(*args) ⇒ App42BadParameterException
constructor
A new instance of App42BadParameterException.
- #initialize1(detailMessage) ⇒ Object
- #initialize3(detailMessage, http_error_code, app_error_code) ⇒ Object
Methods inherited from App42Exception
Constructor Details
#initialize(*args) ⇒ App42BadParameterException
Returns a new instance of App42BadParameterException.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/App42BadParameterException.rb', line 11 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 |
Instance Attribute Details
#app_error_code ⇒ Object
Returns the value of attribute app_error_code.
10 11 12 |
# File 'lib/App42BadParameterException.rb', line 10 def app_error_code @app_error_code end |
#detailMessage ⇒ Object
Returns the value of attribute detailMessage.
10 11 12 |
# File 'lib/App42BadParameterException.rb', line 10 def detailMessage @detailMessage end |
#http_error_code ⇒ Object
Returns the value of attribute http_error_code.
10 11 12 |
# File 'lib/App42BadParameterException.rb', line 10 def http_error_code @http_error_code end |
Instance Method Details
#initialize1(detailMessage) ⇒ Object
22 23 24 |
# File 'lib/App42BadParameterException.rb', line 22 def initialize1(detailMessage) # super(detailMessage) end |
#initialize3(detailMessage, http_error_code, app_error_code) ⇒ Object
26 27 28 29 |
# File 'lib/App42BadParameterException.rb', line 26 def initialize3(detailMessage, http_error_code, app_error_code) super(detailMessage,http_error_code,app_error_code) end |