Exception¶
-
retryable
(cls)¶ Makes the given error retryable.
Parameters: cls – ( HazelcastError
), the given error.Returns: ( HazelcastError
), the given error with retryable property.
-
exception
HazelcastError
¶ Bases:
exceptions.Exception
General HazelcastError class.
-
exception
AuthenticationError
¶ Bases:
hazelcast.exception.HazelcastError
A HazelcastError which is raised when there is an Authentication failure: e.g. credentials from client is not valid.
-
exception
HazelcastClientNotActiveException
¶ Bases:
exceptions.ValueError
A ValueError which is raised when Hazelcast client is not active during an invocation.
-
exception
HazelcastInstanceNotActiveError
¶ Bases:
hazelcast.exception.HazelcastError
A HazelcastError which is raised when HazelcastInstance is not active during an invocation.
-
retryable
= True¶
-
-
exception
HazelcastSerializationError
¶ Bases:
hazelcast.exception.HazelcastError
A HazelcastError which is raised when an error occurs while serializing/deserializing objects.
-
exception
TargetNotMemberError
¶ Bases:
hazelcast.exception.HazelcastError
A HazelcastError that indicates operation is send to a machine that isn’t member of the cluster.
-
retryable
= True¶
-
-
exception
TargetDisconnectedError
¶ Bases:
hazelcast.exception.HazelcastError
A HazelcastError that indicates that an operation is about to be send to a non existing machine.
-
retryable
= True¶
-
-
exception
TimeoutError
¶ Bases:
hazelcast.exception.HazelcastError
A HazelcastError which is raised when an operation times out.
-
exception
TransactionError
¶ Bases:
hazelcast.exception.HazelcastError
A HazelcastError that is thrown when something goes wrong while dealing with transactions and transactional data structures.
-
create_exception
(error_codec)¶ Creates an exception with given error codec.
Parameters: error_codec – (Error Codec), error codec which includes the class name, message and exception trace. Returns: (Exception), the created exception.
-
is_retryable_error
(error)¶ Determines whether the given error is retryable or not. :param error: (
HazelcastError
), the given error. :return: (bool),true
if the given error is retryable,false
otherwise.