Method: Contrast::Agent::Reporting::FindingEventStack#validate

Defined in:
lib/contrast/agent/reporting/reporting_events/finding_event_stack.rb

#validateObject

Raises:

  • (ArgumentError)


57
58
59
60
61
# File 'lib/contrast/agent/reporting/reporting_events/finding_event_stack.rb', line 57

def validate
  return unless Contrast::Utils::DuckUtils.empty_duck?(file)

  raise(ArgumentError, "#{ self } did not have a proper file. Unable to continue.")
end