Exception: Zonesync::ConflictError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/zonesync/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(existing, new) ⇒ ConflictError

Returns a new instance of ConflictError.



9
10
11
12
# File 'lib/zonesync/errors.rb', line 9

def initialize existing, new
  @existing = existing
  @new = new
end

Instance Method Details

#messageObject



15
16
17
18
19
20
21
# File 'lib/zonesync/errors.rb', line 15

def message
  <<~MSG
    The following untracked DNS record already exists and would be overwritten.
      existing: #{@existing}
      new:      #{@new}
  MSG
end