Exception: Solace::Errors::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/solace/errors/connection_error.rb

Overview

Base error class for connection-related failures.

Both HTTPError and RPCError inherit from this class, allowing consumers to rescue all connection errors with a single clause:

Examples:

Rescuing all connection errors

begin
  connection.send_transaction(transaction)
rescue Solace::Errors::ConnectionError => e
  puts "Connection error: #{e.message}"
end

See Also:

Since:

  • 0.1.4

Direct Known Subclasses

HTTPError, RPCError