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



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

def initialize message, headers
  super message

  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

The headers from the error response



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

def headers
  @headers
end