Failover-Exception

This exception type will be thrown internally when a failover happens

package ArangoDBClient
since 3.3
inherited_from \ArangoDBClient\Exception

 Methods

Exception constructor.

__construct(string $message = '', integer $code = 0, \Exception $previous = null
Inherited

Parameters

$message

string

$code

integer

$previous

\Exception

Return a string representation of the exception

__toString() : string

Returns

string- string representation

Turn off exception logging

disableLogging() 
InheritedStatic

Turn on exception logging

enableLogging() 
InheritedStatic

Return the new leader endpoint

getLeader() : string

Returns

string- new leader endpoint

Set the new leader endpoint

setLeader(string $leader) : void

Parameters

$leader

string
  • the new leader endpoint

 Properties

 

New leader endpoint

$_leader 

Default

param
 

$enableLogging

$enableLogging 

Default

false
Static