Exception: S7::InvalidPath

Inherits:
ApplicationError show all
Defined in:
lib/s7/exception.rb

Overview

不正なパスを表現する例外クラス。

Instance Method Summary collapse

Methods included from GetText

#N_, #_, bindtextdomain, included

Constructor Details

#initialize(path) ⇒ InvalidPath

Returns a new instance of InvalidPath.



20
21
22
# File 'lib/s7/exception.rb', line 20

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/s7/exception.rb', line 24

def to_s
  return _("Invalid path: path=<%s>") % @path
end