Module: CvssSuite::Error
- Included in:
- CvssSuite::Errors::InvalidParentClass, CvssSuite::Errors::InvalidVector, CvssSuite::Errors::UnsupportedVersion
- Defined in:
- lib/cvss_suite/errors.rb
Overview
Included by every error this gem raises, so one rescue catches them all:
rescue CvssSuite::Error => e
A module rather than a base class, so the concrete errors keep the ancestors callers already rescue: InvalidVector stays a RuntimeError, and the argument errors stay ArgumentErrors. f7e9866 moved them off a shared base class in 2018 for exactly that compatibility, and this does not take it back.