Exception: SimplyDB::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SimplyDB::Error
- Defined in:
- lib/simplydb/error.rb
Instance Attribute Summary collapse
-
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, http_status_code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(name, http_status_code) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/simplydb/error.rb', line 4 def initialize(name, http_status_code) @name = name @http_status_code = http_status_code end |
Instance Attribute Details
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
3 4 5 |
# File 'lib/simplydb/error.rb', line 3 def http_status_code @http_status_code end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/simplydb/error.rb', line 3 def name @name end |