Exception: Manticore::ManticoreException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/manticore.rb

Overview

General base class for all Manticore exceptions

Instance Method Summary collapse

Constructor Details

#initialize(arg = nil) ⇒ ManticoreException

Returns a new instance of ManticoreException.



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/manticore.rb', line 21

def initialize(arg = nil)
  case arg
  when nil
    @_cause = nil
    super()
  when java.lang.Throwable
    @_cause = arg
    super(arg.message)
  else
    @_cause = nil
    super(arg)
  end
end

Instance Method Details

#ExceptionObject

Returns cause which is likely to be a Java exception.

Returns:

  • cause which is likely to be a Java exception



37
38
39
# File 'lib/manticore.rb', line 37

def cause
  @_cause || super
end