Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/toq/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.
Instance Method Summary collapse
-
#rpc_connection_error? ⇒ Bool
False.
-
#rpc_exception? ⇒ Bool
False.
-
#rpc_invalid_method_error? ⇒ Bool
False.
-
#rpc_invalid_object_error? ⇒ Bool
False.
-
#rpc_invalid_token_error? ⇒ Bool
False.
-
#rpc_remote_exception? ⇒ Bool
False.
-
#rpc_ssl_error? ⇒ Bool
True.
Instance Method Details
#rpc_connection_error? ⇒ Bool
Returns false.
25 26 27 |
# File 'lib/toq/exceptions.rb', line 25 def rpc_connection_error? false end |
#rpc_exception? ⇒ Bool
Returns false.
55 56 57 |
# File 'lib/toq/exceptions.rb', line 55 def rpc_exception? false end |
#rpc_invalid_method_error? ⇒ Bool
Returns false.
40 41 42 |
# File 'lib/toq/exceptions.rb', line 40 def rpc_invalid_method_error? false end |
#rpc_invalid_object_error? ⇒ Bool
Returns false.
35 36 37 |
# File 'lib/toq/exceptions.rb', line 35 def rpc_invalid_object_error? false end |
#rpc_invalid_token_error? ⇒ Bool
Returns false.
45 46 47 |
# File 'lib/toq/exceptions.rb', line 45 def rpc_invalid_token_error? false end |
#rpc_remote_exception? ⇒ Bool
Returns false.
30 31 32 |
# File 'lib/toq/exceptions.rb', line 30 def rpc_remote_exception? false end |
#rpc_ssl_error? ⇒ Bool
Returns true.
50 51 52 |
# File 'lib/toq/exceptions.rb', line 50 def rpc_ssl_error? false end |