Sha256: 3914c8a95b78f75ff824b3cb98413f24fe36d1a82a73b68e1837f16e4376431f

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

module Transproc
  Error = Class.new(StandardError)
  FunctionAlreadyRegisteredError = Class.new(Error)

  class FunctionNotFoundError < Error
    def initialize(function, source = nil)
      return super "No registered function #{source}[:#{function}]" if source
      super "No globally registered function for #{function}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
transproc-1.0.3 lib/transproc/error.rb
transproc-1.0.2 lib/transproc/error.rb
transproc-1.0.1 lib/transproc/error.rb
transproc-1.0.0 lib/transproc/error.rb
transproc-0.4.2 lib/transproc/error.rb
transproc-0.4.1 lib/transproc/error.rb
transproc-0.4.0 lib/transproc/error.rb