Exception: Yobi::MountTimeout

Inherits:
Error
  • Object
show all
Defined in:
lib/yobi/errors.rb,
sig/yobi.rbs

Overview

Raised by Repository#mount when Restic doesn't report itself ready within ready_timeout: seconds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv:, timeout:) ⇒ MountTimeout

Returns a new instance of MountTimeout.

Parameters:

  • argv: (Array[String])
  • timeout: (Numeric)


99
100
101
102
103
# File 'lib/yobi/errors.rb', line 99

def initialize(argv:, timeout:)
  @argv = argv
  @timeout = timeout
  super("Restic mount didn't report readiness within #{timeout}s (tried to run #{argv.inspect})")
end

Instance Attribute Details

#argvArray<String> (readonly)

Returns:

  • (Array<String>)


94
95
96
# File 'lib/yobi/errors.rb', line 94

def argv
  @argv
end

#timeoutNumeric (readonly)

Returns:

  • (Numeric)


96
97
98
# File 'lib/yobi/errors.rb', line 96

def timeout
  @timeout
end