Exception: Mountfd::ConfigError

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

Direct Known Subclasses

MountError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, diagnostics = []) ⇒ ConfigError

Returns a new instance of ConfigError.

Parameters:

  • message (String)
  • diagnostics (Array[Diagnostic]) (defaults to: [])


12
13
14
15
# File 'lib/mountfd.rb', line 12

def initialize(message, diagnostics = [])
  @diagnostics = diagnostics
  super([message, *diagnostics.map(&:to_s)].join("\n"))
end

Instance Attribute Details

#diagnosticsArray[Diagnostic] (readonly)

Returns the value of attribute diagnostics.

Returns:



10
11
12
# File 'lib/mountfd.rb', line 10

def diagnostics
  @diagnostics
end