Sha256: 1f17962906b9471fee670336adeae29dc3e0f6edd0bbf2820d748ad7392b0a59
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
module YammerApi module Errors class Error < StandardError attr_reader :data def initialize(data) @data = data super end end # Raised when Yammer returns the HTTP status code 400 class BadRequest < Error; end # Raised when Yammer returns the HTTP status code 401 class Unauthorized < Error; end # Raised when Yammer returns the HTTP status code 403 class Forbidden < Error; end # Raised when Yammer returns the HTTP status code 404 class NotFound < Error; end # Raised when Yammer returns the HTTP status code 406 class NotAcceptable < Error; end # Raised when Yammer returns the HTTP status code 500 class InternalServerError < Error; end # Raised when Yammer returns the HTTP status code 502 class BadGateway < Error; end # Raised when Yammer returns the HTTP status code 503 class ServiceUnavailable < Error; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yammer_api-0.1.0 | lib/yammer_api/errors.rb |