class TerraformLandscape::Error

@abstract
errors in the exception hierarchy.
Abstract error. Separates LintTrappings errors from other kinds of

def self.exit_status(*args)

where it makes sense.
Ideally these should resemble exit codes from the sysexits documentation

unhandled.
Returns the status code that should be output if this error goes
def self.exit_status(*args)
  if args.any?
    @exit_status = args.first
  elsif @exit_status
    @exit_status
  else
    ancestors.each do |ancestor|
      return 70 if ancestor == TerraformLandscape::Error # No exit status defined
      return ancestor.exit_status if ancestor.exit_status
    end
  end
end

def exit_status

def exit_status
  self.class.exit_status
end