Exception: Seasar::Container::Exception::ComponentNotFoundRuntimeException
- Inherits:
-
Exception::S2RuntimeException
- Object
- StandardError
- Exception::S2RuntimeException
- Seasar::Container::Exception::ComponentNotFoundRuntimeException
- Defined in:
- lib/seasar/container/exception/component-notfound-runtime-exception.rb
Overview
コンポーネントがコンテナに見つからない場合にスローされる例外クラスです。
Instance Method Summary collapse
-
#initialize(key) ⇒ ComponentNotFoundRuntimeException
constructor
ComponentNotFoundRuntimeExceptionを構築します。 - args 1.
-
#to_s ⇒ Object
ComponentNotFoundRuntimeExceptionの文字列表現を返します。 - args - none - return - String.
Constructor Details
#initialize(key) ⇒ ComponentNotFoundRuntimeException
ComponentNotFoundRuntimeExceptionを構築します。
-
args
-
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_s ⇒ Object
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 |