Exception: Fastbeans::RPCException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, backtrace = nil) ⇒ RPCException

Returns a new instance of RPCException.



6
7
8
9
# File 'lib/fastbeans/errors.rb', line 6

def initialize(msg, backtrace=nil)
  super(msg)
  @backtrace = backtrace
end

Instance Attribute Details

#orig_excObject

Returns the value of attribute orig_exc.



4
5
6
# File 'lib/fastbeans/errors.rb', line 4

def orig_exc
  @orig_exc
end

Instance Method Details

#backtraceObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fastbeans/errors.rb', line 11

def backtrace
  if @backtrace
    if @backtrace.is_a?(String)
      @backtrace.split(/\n/).map(&:strip)
    else
      @backtrace
    end
  else
    super
  end
end