Exception: Manticore::ManticoreException
- Inherits:
-
StandardError
- Object
- StandardError
- Manticore::ManticoreException
- Defined in:
- lib/manticore.rb
Overview
General base class for all Manticore exceptions
Direct Known Subclasses
ClientProtocolException, ClientStoppedException, InvalidArgumentException, InvalidUriException, ResolutionFailure, SocketException, StreamClosedException, Timeout, UnknownException
Instance Method Summary collapse
-
#Exception ⇒ Object
Cause which is likely to be a Java exception.
-
#initialize(arg = nil) ⇒ ManticoreException
constructor
A new instance of ManticoreException.
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.) else @_cause = nil super(arg) end end |
Instance Method Details
#Exception ⇒ Object
Returns cause which is likely to be a Java exception.
37 38 39 |
# File 'lib/manticore.rb', line 37 def cause @_cause || super end |