# File lib/core/connection.rb, line 312
    def error
      Cproton.pn_error_code(Cproton.pn_connection_error(@impl))
    end