Exception: Zonesync::ChecksumMismatchError
- Inherits:
-
StandardError
- Object
- StandardError
- Zonesync::ChecksumMismatchError
- Extended by:
- T::Sig
- Defined in:
- lib/zonesync/errors.rb
Instance Method Summary collapse
-
#initialize(existing = nil, new = nil, expected_record: nil, actual_record: nil, missing_hash: nil) ⇒ ChecksumMismatchError
constructor
A new instance of ChecksumMismatchError.
- #message ⇒ Object
Constructor Details
#initialize(existing = nil, new = nil, expected_record: nil, actual_record: nil, missing_hash: nil) ⇒ ChecksumMismatchError
87 88 89 90 91 92 93 |
# File 'lib/zonesync/errors.rb', line 87 def initialize(existing = nil, new = nil, expected_record: nil, actual_record: nil, missing_hash: nil) @existing = existing @new = new @expected_record = expected_record @actual_record = actual_record @missing_hash = missing_hash end |
Instance Method Details
#message ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/zonesync/errors.rb', line 96 def # V2 manifest integrity violation if @missing_hash return end # V1 checksum mismatch " The zonesync_checksum TXT record does not match the current state of the DNS records. This probably means that someone else has changed them.\n existing: \#{@existing}\n new: \#{@new}\n MSG\nend\n" |