Exception: Zonesync::ConflictError
- Inherits:
-
StandardError
- Object
- StandardError
- Zonesync::ConflictError
- Extended by:
- T::Sig
- Defined in:
- lib/zonesync/errors.rb
Instance Method Summary collapse
-
#initialize(existing, new) ⇒ ConflictError
constructor
A new instance of ConflictError.
- #message ⇒ Object
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
#message ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/zonesync/errors.rb', line 15 def <<~MSG The following untracked DNS record already exists and would be overwritten. existing: #{@existing} new: #{@new} MSG end |