Exception: Seasar::Container::Exception::IllegalInstanceDefRuntimeException

Inherits:
Exception::S2RuntimeException show all
Defined in:
lib/seasar/container/exception/illegal-instance-def-runtime-exception.rb

Overview

InstanceDef抽象クラスを継承していないクラスを登録しようとした場合にスローされる例外クラスです。

Instance Method Summary collapse

Constructor Details

#initialize(instance_def_name) ⇒ IllegalInstanceDefRuntimeException

IllegalInstanceDefRuntimeExceptionを構築します。

  • args

    1. Symbol instance_def_name



29
30
31
# File 'lib/seasar/container/exception/illegal-instance-def-runtime-exception.rb', line 29

def initialize(instance_def_name)
  @instance_def_name = instance_def_name
end

Instance Method Details

#to_sObject

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

  • args

    1. Seasar::Container::ComponentDef component_def

  • return

    • Seasar::Container::Deployer::PrototypeComponentDeployer



38
39
40
# File 'lib/seasar/container/exception/illegal-instance-def-runtime-exception.rb', line 38

def to_s
  return 'instanceDef name is ' << @instance_def_name.to_s
end