Exception: Seasar::Container::Exception::TooManyRegistrationRuntimeException
- Inherits:
-
Exception::S2RuntimeException
- Object
- StandardError
- Exception::S2RuntimeException
- Seasar::Container::Exception::TooManyRegistrationRuntimeException
- Defined in:
- lib/seasar/container/exception/toomany-registration-runtime-exception.rb
Overview
複数のコンポーネントがコンテナに見つかった場合にスローされる例外クラスです。
Instance Method Summary collapse
-
#initialize(key, compnent_classes) ⇒ TooManyRegistrationRuntimeException
constructor
TooManyRegistrationRuntimeExceptionを構築します。 - args 1.
-
#to_s ⇒ Object
TooManyRegistrationRuntimeExceptionの文字列表現を返します。 - args 1.
Constructor Details
#initialize(key, compnent_classes) ⇒ TooManyRegistrationRuntimeException
TooManyRegistrationRuntimeExceptionを構築します。
-
args
-
Symbol key
-
Array compnent_classes
-
30 31 32 33 |
# File 'lib/seasar/container/exception/toomany-registration-runtime-exception.rb', line 30 def initialize(key, compnent_classes) @key = key @component_classes = compnent_classes end |
Instance Method Details
#to_s ⇒ Object
TooManyRegistrationRuntimeExceptionの文字列表現を返します。
-
args
-
Seasar::Container::ComponentDef component_def
-
-
return
-
Seasar::Container::Deployer::PrototypeComponentDeployer
-
40 41 42 |
# File 'lib/seasar/container/exception/toomany-registration-runtime-exception.rb', line 40 def to_s return "too many registration for key : #{@key}, classes : #{@component_classes.inspect}" end |