Sha256: e6e3686db02c2f7501184985ab4d806f5a899cd5f1e0f6b882b03823cb46c3a8

Contents?: true

Size: 425 Bytes

Versions: 40

Compression:

Stored size: 425 Bytes

Contents

class Tramway::Error < Exception
  def initialize(*args, plugin: nil, method: nil, message: nil)
    @properties ||= {}
    @properties[:plugin] = plugin
    @properties[:method] = method
    @properties[:message] = message
    super(*args)
  end

  def message
    "Plugin: #{@properties[:plugin]}; Method: #{@properties[:method]}; Message: #{@properties[:message]}"
  end

  def properties
    @properties ||= {}
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
tramway-core-1.10 lib/tramway/error.rb
tramway-core-1.9.9.3 lib/tramway/error.rb
tramway-core-1.9.9.2 lib/tramway/error.rb
tramway-core-1.9.9.1 lib/tramway/error.rb
tramway-core-1.9.9 lib/tramway/error.rb
tramway-core-1.9.8.1 lib/tramway/error.rb
tramway-core-1.9.8 lib/tramway/error.rb
tramway-core-1.9.7 lib/tramway/error.rb
tramway-core-1.9.6.1 lib/tramway/error.rb
tramway-core-1.9.6 lib/tramway/error.rb
tramway-core-1.9.5 lib/tramway/error.rb
tramway-core-1.9.4 lib/tramway/error.rb
tramway-core-1.9.3 lib/tramway/error.rb
tramway-core-1.9.2.1 lib/tramway/error.rb
tramway-core-1.9.2 lib/tramway/error.rb
tramway-core-1.9.1 lib/tramway/error.rb
tramway-core-1.9 lib/tramway/error.rb
tramway-core-1.8.4 lib/tramway/error.rb
tramway-core-1.8.3 lib/tramway/error.rb
tramway-core-1.8.2 lib/tramway/error.rb