Sha256: ecf14961493dbef8fa52d63a4d851dfd340fcdb1641d15fdae6b78fbeabad469
Contents?: true
Size: 303 Bytes
Versions: 1
Compression:
Stored size: 303 Bytes
Contents
module Restfulness class HTTPException < ::StandardError attr_accessor :code, :payload, :headers def initialize(code, payload = nil, opts = {}) @code = code @payload = payload @headers = opts[:headers] super(opts[:message] || STATUSES[code]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restfulness-0.1.0 | lib/restfulness/exceptions.rb |