Exception: Pione::Lang::ParamError

Inherits:
LangError
  • Object
show all
Defined in:
lib/pione/lang/lang-exception.rb

Overview

ParamError is raised when undefined parameter is specified.

Instance Method Summary collapse

Constructor Details

#initialize(name, package_id) ⇒ ParamError

Returns a new instance of ParamError.



59
60
61
62
# File 'lib/pione/lang/lang-exception.rb', line 59

def initialize(name, package_id)
  @name = name
  @package_id = package_id
end

Instance Method Details

#messageObject



64
65
66
# File 'lib/pione/lang/lang-exception.rb', line 64

def message
  "parameter %s is not declared in package %s" % [@name, @package_id]
end