Exception: Growl::GNTP::ResponseError
- Defined in:
- lib/ruby-growl/gntp.rb
Overview
Raised when the server indicates a GNTP response error
Direct Known Subclasses
AlreadyProcessed, InternalServerError, InvalidRequest, NetworkFailure, NotAuthorized, NotificationDisabled, RequiredHeaderMissing, TimedOut, UnknownApplication, UnknownNotification, UnknownProtocol, UnknownProtocolVersion
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
The headers from the error response.
Instance Method Summary collapse
-
#initialize(message, headers) ⇒ ResponseError
constructor
Creates a new error with
message
from the response Error-Description header and the fullheaders
.
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 , headers super @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
The headers from the error response
45 46 47 |
# File 'lib/ruby-growl/gntp.rb', line 45 def headers @headers end |