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.13.1.1 lib/tramway/error.rb
tramway-core-1.13.1 lib/tramway/error.rb
tramway-core-1.13.0.2 lib/tramway/error.rb
tramway-core-1.13.0.1 lib/tramway/error.rb
tramway-core-1.13 lib/tramway/error.rb
tramway-core-1.12.1 lib/tramway/error.rb
tramway-core-1.12.0.2 lib/tramway/error.rb
tramway-core-1.12.0.1 lib/tramway/error.rb
tramway-core-1.12 lib/tramway/error.rb
tramway-core-1.11.2.1 lib/tramway/error.rb
tramway-core-1.11.2 lib/tramway/error.rb
tramway-core-1.11.1 lib/tramway/error.rb
tramway-core-1.11 lib/tramway/error.rb
tramway-core-1.10.3.1 lib/tramway/error.rb
tramway-core-1.10.3 lib/tramway/error.rb
tramway-core-1.10.2.3 lib/tramway/error.rb
tramway-core-1.10.2.2 lib/tramway/error.rb
tramway-core-1.10.2.1 lib/tramway/error.rb
tramway-core-1.10.2 lib/tramway/error.rb
tramway-core-1.10.1 lib/tramway/error.rb