Sha256: 86920d7d2c431682cf7f388df9d79035d2f57e32dd2e535d8e90d08cc70e38a7

Contents?: true

Size: 240 Bytes

Versions: 29

Compression:

Stored size: 240 Bytes

Contents

module UniverseCompiler

  class Error < StandardError

    attr_accessor :original

    def self.from(exception, message = exception.message)
      wrapper = new message
      wrapper.original = exception
      wrapper
    end

  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
universe_compiler-0.3.2 lib/universe_compiler/error.rb
universe_compiler-0.3.1 lib/universe_compiler/error.rb
universe_compiler-0.3.0 lib/universe_compiler/error.rb
universe_compiler-0.2.16 lib/universe_compiler/error.rb
universe_compiler-0.2.15 lib/universe_compiler/error.rb
universe_compiler-0.2.14 lib/universe_compiler/error.rb
universe_compiler-0.2.13 lib/universe_compiler/error.rb
universe_compiler-0.2.12 lib/universe_compiler/error.rb
universe_compiler-0.2.11 lib/universe_compiler/error.rb