Exception: Px::Service::ServiceBaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Px::Service::ServiceBaseError
- Defined in:
- lib/px/service/errors.rb
Overview
Any external service should have its exceptions inherit from this class so that controllers can handle them all nicely with “service is down” pages or whatnot
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status) ⇒ ServiceBaseError
constructor
A new instance of ServiceBaseError.
Constructor Details
#initialize(message, status) ⇒ ServiceBaseError
Returns a new instance of ServiceBaseError.
9 10 11 12 |
# File 'lib/px/service/errors.rb', line 9 def initialize(, status) self.status = status super() end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/px/service/errors.rb', line 7 def status @status end |