Sha256: 439d526aa61c204979d8fe3183641bb66999d027563433bd833e61fc277e73c4

Contents?: true

Size: 286 Bytes

Versions: 4

Compression:

Stored size: 286 Bytes

Contents

module RainforestRubyRuntime
  class Exception < RuntimeError
  end

  class WrongReturnValueError < Exception
    attr_reader :returned_value
    def initialize(returned_value)
      @returned_value = returned_value
      super "The script must return a Test object"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rainforest_ruby_runtime-0.1.1 lib/rainforest_ruby_runtime/exceptions.rb
rainforest_ruby_runtime-0.1.0 lib/rainforest_ruby_runtime/exceptions.rb
rainforest_ruby_runtime-0.0.2 lib/rainforest_ruby_runtime/exceptions.rb
rainforest_ruby_runtime-0.0.1 lib/rainforest_ruby_runtime/exceptions.rb