Methods

Arachni::RPC::Exceptions

Public Class Methods

from_response( response ) click to toggle source

Returns an exception based on the response object.

@param [Arachni::RPC::Response] response

@return [Exception]

# File lib/arachni/rpc/exceptions.rb, line 69
def self.from_response( response )
    obj = response.obj
    klass = Arachni::RPC::Exceptions.const_get( obj['type'].to_sym )
    e = klass.new( obj['exception'] )
    e.set_backtrace( obj['backtrace'] )
    e
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.