class IndieAuthDiscovery::Error

Base class for IndieAuthDiscovery errors.

Attributes

error[RW]
error_reason[RW]
error_uri[RW]

Public Class Methods

new(error, error_reason = nil, error_uri = nil) click to toggle source
Calls superclass method
# 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(message)
end

Public Instance Methods

message() click to toggle source
# File lib/indieauth_discovery/errors.rb, line 16
def message
  [error, error_reason, error_uri].compact.join(' | ')
end