Class: NativeException
- Inherits:
-
Object
- Object
- NativeException
- Defined in:
- lib/corba/jbase/exception.rb
Overview
extend Ruby wrapper for Native java exceptions
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
96 97 98 99 100 101 102 103 104 105 |
# File 'lib/corba/jbase/exception.rb', line 96 def method_missing(method, *args) if self.cause.is_a?(R2CORBA::CORBA::Native::SystemException) and args.empty? return self.cause.minor if method == :minor return self.cause.completed.value if method == :completed return self.cause.getMessage if method == :reason elsif self.cause.is_a? R2CORBA::CORBA::Native::UserException return self.cause.send(method, *args) end self.method_missing_corba_backup end |
Instance Method Details
#method_missing_corba_backup ⇒ Object
95 |
# File 'lib/corba/jbase/exception.rb', line 95 alias method_missing_corba_backup method_missing |