Exception: R2CORBA::CORBA::SystemException
- Defined in:
- lib/corba/cbase/exception.rb,
lib/corba/jbase/exception.rb,
lib/corba/common/exception.rb
Instance Attribute Summary collapse
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#ids ⇒ Object
Returns the value of attribute ids.
-
#minor ⇒ Object
Returns the value of attribute minor.
Class Method Summary collapse
Instance Method Summary collapse
- #_ids ⇒ Object
- #_interface_repository_id ⇒ Object
-
#initialize(*args) ⇒ SystemException
constructor
A new instance of SystemException.
- #reason ⇒ Object
- #to_s ⇒ Object
Methods inherited from Exception
Constructor Details
#initialize(*args) ⇒ SystemException
Returns a new instance of SystemException.
49 50 51 52 53 54 |
# File 'lib/corba/cbase/exception.rb', line 49 def initialize(reason="", minor=0, completed=nil) super(reason) @minor = minor @completed = completed @ids = [self.class::Id] end |
Instance Attribute Details
#completed ⇒ Object
Returns the value of attribute completed.
29 30 31 |
# File 'lib/corba/common/exception.rb', line 29 def completed @completed end |
#ids ⇒ Object
Returns the value of attribute ids.
55 56 57 |
# File 'lib/corba/cbase/exception.rb', line 55 def ids @ids end |
#minor ⇒ Object
Returns the value of attribute minor.
29 30 31 |
# File 'lib/corba/common/exception.rb', line 29 def minor @minor end |
Class Method Details
._raise(jex) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/corba/cbase/exception.rb', line 37 def SystemException._raise(id, reason, minor, completed) name = id.to_s.split(':')[1] exklass = name.split('/').last exklass = CORBA.const_defined?(exklass) ? CORBA.const_get(exklass) : nil if exklass.nil? || !(CORBA::SystemException > exklass) Kernel.raise InternalError, "Unknown SystemException raised: " + id.to_s+' ['+reason.to_s+']' else Kernel.raise exklass.new(reason,minor,completed) end end |
Instance Method Details
#_ids ⇒ Object
56 |
# File 'lib/corba/cbase/exception.rb', line 56 def _ids; @ids; end |
#_interface_repository_id ⇒ Object
57 58 59 |
# File 'lib/corba/cbase/exception.rb', line 57 def _interface_repository_id self.class::Id end |
#reason ⇒ Object
30 31 32 |
# File 'lib/corba/common/exception.rb', line 30 def reason self. end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/corba/common/exception.rb', line 33 def to_s "CORBA::#{self.class::Name}(#{super}) [minor=#{@minor};completed=#{COMPLETED_TXT[@completed.to_i]}]" end |