Sha256: 86a4bc563e2f63266353c806743fb97dcfb07adff7ce2c8a7ff86de0fcc81b4e
Contents?: true
Size: 393 Bytes
Versions: 5
Compression:
Stored size: 393 Bytes
Contents
module Capgun # Custom error class for rescuing from all Capgun errors class Error < StandardError attr_reader :http_headers # Initializes a new Error object # # @param message [String] # @param http_headers [Hash] # @return [Capgun::Error] def initialize(message, http_headers) @http_headers = Hash[http_headers] super(message) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
capgun-0.2.0 | lib/capgun/error.rb |
capgun-0.1.2 | lib/capgun/error.rb |
capgun-0.1.1 | lib/capgun/error.rb |
capgun-0.1.0 | lib/capgun/error.rb |
capgun-0.0.3 | lib/capgun/error.rb |