Exception: BBK::HTTP::Publisher::PublishError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bbk/http/publisher.rb

Constant Summary collapse

DEFAULT_MESSAGE =
'HTTP publishing error'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, message: DEFAULT_MESSAGE) ⇒ PublishError

Returns a new instance of PublishError.



21
22
23
24
# File 'lib/bbk/http/publisher.rb', line 21

def initialize(context, message: DEFAULT_MESSAGE)
  super(message)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



19
20
21
# File 'lib/bbk/http/publisher.rb', line 19

def context
  @context
end