Class: Object

Inherits:
BasicObject
Defined in:
lib/arachni/rpc/exceptions.rb

Overview

RPC Exceptions have methods that help identify them based on type.

So in order to allow evaluations like:

my_object.rpc_connection_error?

to be possible on all objects these helper methods need to be available for all objects.

By default they’ll return false, individual RPC Exceptions will overwrite them to return true when applicable.

@author: Tasos “Zapotek” Laskos <[email protected]>

Instance Method Summary collapse

Instance Method Details

#rpc_connection_error?Bool

Returns false.

Returns:

  • (Bool)

    false



27
28
29
# File 'lib/arachni/rpc/exceptions.rb', line 27

def rpc_connection_error?
    false
end

#rpc_exception?Bool

Returns false.

Returns:

  • (Bool)

    false



52
53
54
# File 'lib/arachni/rpc/exceptions.rb', line 52

def rpc_exception?
    false
end

#rpc_invalid_method_error?Bool

Returns false.

Returns:

  • (Bool)

    false



42
43
44
# File 'lib/arachni/rpc/exceptions.rb', line 42

def rpc_invalid_method_error?
    false
end

#rpc_invalid_object_error?Bool

Returns false.

Returns:

  • (Bool)

    false



37
38
39
# File 'lib/arachni/rpc/exceptions.rb', line 37

def rpc_invalid_object_error?
    false
end

#rpc_invalid_token_error?Bool

Returns false.

Returns:

  • (Bool)

    false



47
48
49
# File 'lib/arachni/rpc/exceptions.rb', line 47

def rpc_invalid_token_error?
    false
end

#rpc_remote_exception?Bool

Returns false.

Returns:

  • (Bool)

    false



32
33
34
# File 'lib/arachni/rpc/exceptions.rb', line 32

def rpc_remote_exception?
    false
end