| 131 | virtual double as_float() const { throw std::runtime_error(type() + " is not a float value"); } |
| 132 | virtual string as_string() const { throw std::runtime_error(type() + " is not a string value"); } |
| 133 | virtual bool as_bool() const { throw std::runtime_error(type() + " is not a bool value"); } |
| 134 | virtual const std::vector<value> & as_array() const { throw std::runtime_error(type() + " is not an array value"); } |
| 135 | virtual const std::vector<std::pair<value, value>> & as_ordered_object() const { throw std::runtime_error(type() + " is not an object value"); } |
| 136 | virtual value invoke(const func_args &) const { throw std::runtime_error(type() + " is not a function value"); } |
no test coverage detected