12345678910111213141516171819202122232425 |
- #include <ls-std/core/exception/IllegalArgumentException.hpp>
- #include <ls-std/io/section-pair/SectionPairRowValueArgumentEvaluator.hpp>
- #include <ls-std/io/section-pair/SectionPairRowValueValidator.hpp>
- ls::std::io::SectionPairRowValueArgumentEvaluator::SectionPairRowValueArgumentEvaluator(::std::string _value, ::std::string _message) : value(::std::move(_value)) , message(::std::move(_message))
- {}
- ls::std::io::SectionPairRowValueArgumentEvaluator::~SectionPairRowValueArgumentEvaluator() = default;
- void ls::std::io::SectionPairRowValueArgumentEvaluator::evaluate()
- {
- if (!ls::std::io::SectionPairRowValueValidator(this->value).isValid())
- {
- throw ls::std::core::IllegalArgumentException{this->message};
- }
- }
|