Exception: Seasar::Container::Exception::ComponentNotFoundRuntimeException

Inherits:
Exception::S2RuntimeException show all
Defined in:
lib/seasar/container/exception/component-notfound-runtime-exception.rb

Overview

コンポーネントがコンテナに見つからない場合にスローされる例外クラスです。

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ ComponentNotFoundRuntimeException

ComponentNotFoundRuntimeExceptionを構築します。

  • args

    1. Symbol|String key



29
30
31
# File 'lib/seasar/container/exception/component-notfound-runtime-exception.rb', line 29

def initialize(key)
  @key = key
end

Instance Method Details

#to_sObject

ComponentNotFoundRuntimeExceptionの文字列表現を返します。

  • args

    • none

  • return

    • String



38
39
40
# File 'lib/seasar/container/exception/component-notfound-runtime-exception.rb', line 38

def to_s
  return "component [#{@key.to_s}] not found."
end