ConnectionFailure constructor

ConnectionFailure(
  1. Exception cause,
  2. bool reconnect
)

Creates a connection failure event with the given cause and reconnect.