Exception: EndpointFlux::Exceptions::Base
- Inherits:
-
StandardError
- Object
- StandardError
- EndpointFlux::Exceptions::Base
- Defined in:
- lib/endpoint_flux/exceptions/base.rb
Direct Known Subclasses
Forbidden, NotFound, ServiceUnavailable, Unauthorized, Validation
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(messages = nil) ⇒ Base
constructor
A new instance of Base.
- #inspect ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(messages = nil) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/endpoint_flux/exceptions/base.rb', line 6 def initialize( = nil) = super("#{self.class.name}: [ #{messages.inspect}]") end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
4 5 6 |
# File 'lib/endpoint_flux/exceptions/base.rb', line 4 def end |
Instance Method Details
#inspect ⇒ Object
16 17 18 |
# File 'lib/endpoint_flux/exceptions/base.rb', line 16 def inspect "#{self.class.name}: [ #{to_hash.inspect} ]" end |
#to_hash ⇒ Object
12 13 14 |
# File 'lib/endpoint_flux/exceptions/base.rb', line 12 def to_hash raise NotImplementedError end |