Exception: PSClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PSClient::Error
- Defined in:
- lib/ps_pop_client/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, code = nil) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/ps_pop_client/error.rb', line 4 def initialize( = nil, code = nil) super() @code = (code) ? code : 500 end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/ps_pop_client/error.rb', line 3 def code @code end |