Exception: S7::NoSuchEntry
- Inherits:
-
ApplicationError
- Object
- StandardError
- ApplicationError
- S7::NoSuchEntry
- Defined in:
- lib/s7/exception.rb
Overview
機密情報が存在しないことを表現する例外クラス。
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ NoSuchEntry
constructor
A new instance of NoSuchEntry.
- #to_s ⇒ Object
Methods included from GetText
#N_, #_, bindtextdomain, included
Constructor Details
#initialize(options = {}) ⇒ NoSuchEntry
Returns a new instance of NoSuchEntry.
42 43 44 |
# File 'lib/s7/exception.rb', line 42 def initialize( = {}) = end |
Instance Method Details
#to_s ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/s7/exception.rb', line 46 def to_s if !.empty? s = "" .each do |key, value| s << " #{key}=<#{value}>" end end if s.empty? return _("No such entry.") else return _("No such entry:%s") % s end end |