Exception: Pione::Package::NotFound

Inherits:
PackageError
  • Object
show all
Defined in:
lib/pione/package/package-exception.rb

Overview

NotFound is raised when package not found in package database.

Instance Method Summary collapse

Constructor Details

#initialize(name, editor, tag) ⇒ NotFound

Returns a new instance of NotFound.



7
8
9
10
11
# File 'lib/pione/package/package-exception.rb', line 7

def initialize(name, editor, tag)
  @name = name
  @editor = editor
  @tag = tag
end

Instance Method Details

#messageObject



13
14
15
# File 'lib/pione/package/package-exception.rb', line 13

def message
  "the package(name: %s, editor: %s, tag: %s) not found" % [@name, @editor, @tag]
end