Exception: Devpack::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/devpack.rb

Overview

Base class for all Devpack errors. Accepts additional argument ‘meta` to store object info.

Direct Known Subclasses

GemIncompatibilityError, GemNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, meta = nil) ⇒ Error

Returns a new instance of Error.



23
24
25
26
27
# File 'lib/devpack.rb', line 23

def initialize(message = nil, meta = nil)
  @message = message
  @meta = meta
  super(message)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



21
22
23
# File 'lib/devpack.rb', line 21

def message
  @message
end

#metaObject (readonly)

Returns the value of attribute meta.



21
22
23
# File 'lib/devpack.rb', line 21

def meta
  @meta
end