Exception: Growl::GNTP::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/ruby-growl/gntp.rb

Overview

Raised when the server indicates a GNTP response error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, headers) ⇒ ResponseError

Creates a new error with message from the response Error-Description header and the full headers



50
51
52
53
54
# File 'lib/ruby-growl/gntp.rb', line 50

def initialize message, headers
  super message

  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

The headers from the error response



44
45
46
# File 'lib/ruby-growl/gntp.rb', line 44

def headers
  @headers
end