Exception: IndieAuthDiscovery::Error
- Inherits:
-
StandardError
- Object
- StandardError
- IndieAuthDiscovery::Error
- Defined in:
- lib/indieauth_discovery/errors.rb
Overview
Base class for IndieAuthDiscovery errors.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_reason ⇒ Object
Returns the value of attribute error_reason.
-
#error_uri ⇒ Object
Returns the value of attribute error_uri.
Instance Method Summary collapse
-
#initialize(error, error_reason = nil, error_uri = nil) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(error, error_reason = nil, error_uri = nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 14 |
# File 'lib/indieauth_discovery/errors.rb', line 8 def initialize(error, error_reason = nil, error_uri = nil) @error = error @error_reason = error_reason @error_uri = error_uri super() end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
6 7 8 |
# File 'lib/indieauth_discovery/errors.rb', line 6 def error @error end |
#error_reason ⇒ Object
Returns the value of attribute error_reason.
6 7 8 |
# File 'lib/indieauth_discovery/errors.rb', line 6 def error_reason @error_reason end |
#error_uri ⇒ Object
Returns the value of attribute error_uri.
6 7 8 |
# File 'lib/indieauth_discovery/errors.rb', line 6 def error_uri @error_uri end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/indieauth_discovery/errors.rb', line 16 def [error, error_reason, error_uri].compact.join(' | ') end |