Exception: Util::Params::Error
- Inherits:
-
Exception
- Object
- Exception
- Util::Params::Error
- Defined in:
- lib/util/params/error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status, code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status, code, message) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 |
# File 'lib/util/params/error.rb', line 8 def initialize status, code, super nil @status_code = status @error_code = code @error_message = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
6 7 8 |
# File 'lib/util/params/error.rb', line 6 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
6 7 8 |
# File 'lib/util/params/error.rb', line 6 def @error_message end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
6 7 8 |
# File 'lib/util/params/error.rb', line 6 def status_code @status_code end |