Sha256: 1a2adc9ebafe337699811f9a1e81dd936a6b28d2a3802a1dd874812310bbdae1

Contents?: true

Size: 286 Bytes

Versions: 10

Compression:

Stored size: 286 Bytes

Contents

module YouGotListed
  class Error < Exception
    
    attr_reader :code, :error
    
    def initialize(code, error)
      @code = code
      @error = error
      super(message)
    end
    
    def message
      "YouGotListed Error: #{@error} (code: #{@code})"
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
you_got_listed-0.3.3 lib/you_got_listed/error.rb
you_got_listed-0.3.2 lib/you_got_listed/error.rb
you_got_listed-0.3.1 lib/you_got_listed/error.rb
you_got_listed-0.3.0 lib/you_got_listed/error.rb
you_got_listed-0.2.5 lib/you_got_listed/error.rb
you_got_listed-0.2.4 lib/you_got_listed/error.rb
you_got_listed-0.2.3 lib/you_got_listed/error.rb
you_got_listed-0.2.2 lib/you_got_listed/error.rb
you_got_listed-0.2.1 lib/you_got_listed/error.rb
you_got_listed-0.2.0 lib/you_got_listed/error.rb