Exception: Seasar::Exception::PropertyNotFoundRuntimeException

Inherits:
S2RuntimeException
  • Object
show all
Defined in:
lib/seasar/exception/property-notfound-runtime-exception.rb

Overview

プロパティが存在しない場合にスローされる例外です。

Instance Method Summary collapse

Constructor Details

#initialize(bean_class, attribute) ⇒ PropertyNotFoundRuntimeException

PropertyNotFoundRuntimeExceptionを構築します。

  • args
    1. Class bean_class
    2. Symbol attribute


31
32
33
34
# File 'lib/seasar/exception/property-notfound-runtime-exception.rb', line 31

def initialize(bean_class, attribute)
  @bean_class = bean_class
  @attribute = attribute
end

Instance Method Details

#to_sObject

文字列表現を返します。

  • args
    • none
  • return
    • String


43
44
45
# File 'lib/seasar/exception/property-notfound-runtime-exception.rb', line 43

def to_s
  return "class : #{@bean_class}, attribute : #{@attribute}"
end