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.5.6 lib/universe_compiler/error.rb
universe_compiler-0.5.5 lib/universe_compiler/error.rb
universe_compiler-0.5.4 lib/universe_compiler/error.rb
universe_compiler-0.5.3 lib/universe_compiler/error.rb
universe_compiler-0.5.2 lib/universe_compiler/error.rb
universe_compiler-0.5.1 lib/universe_compiler/error.rb
universe_compiler-0.4.3 lib/universe_compiler/error.rb
universe_compiler-0.4.2 lib/universe_compiler/error.rb
universe_compiler-0.4.1 lib/universe_compiler/error.rb
universe_compiler-0.4.0 lib/universe_compiler/error.rb
universe_compiler-0.3.12 lib/universe_compiler/error.rb
universe_compiler-0.3.11 lib/universe_compiler/error.rb
universe_compiler-0.3.10 lib/universe_compiler/error.rb
universe_compiler-0.3.9 lib/universe_compiler/error.rb
universe_compiler-0.3.8 lib/universe_compiler/error.rb
universe_compiler-0.3.7 lib/universe_compiler/error.rb
universe_compiler-0.3.6 lib/universe_compiler/error.rb
universe_compiler-0.3.5 lib/universe_compiler/error.rb
universe_compiler-0.3.4 lib/universe_compiler/error.rb
universe_compiler-0.3.3 lib/universe_compiler/error.rb