Exception: Snails::Logger::Delivery::DroppedBatch

Inherits:
StandardError
  • Object
show all
Defined in:
runtime/snails/logger/delivery.rb,
runtime/snails/logger/delivery.rbs

Overview

A batch the transport refused. It carries the record count so the local failure line says how much was dropped, not just that something failed.

Instance Method Summary collapse

Constructor Details

#initialize(count, cause) ⇒ DroppedBatch

Returns a new instance of DroppedBatch.

Parameters:

  • count (Integer)
  • cause (Exception)


10
# File 'runtime/snails/logger/delivery.rbs', line 10

def initialize: (Integer count, Exception cause) -> void

Instance Method Details

#count ⇒ Integer

how many records were in the dropped batch.

Returns:



35
# File 'runtime/snails/logger/delivery.rb', line 35

def count: () -> Integer

#severity ⇒ Symbol

how the local line reports the loss: records are gone.

Returns:

  • (Symbol) —

    :error



42
# File 'runtime/snails/logger/delivery.rb', line 42

def severity: () -> Symbol