| 45 | } |
| 46 | |
| 47 | class MalformedInputException : public ParseError { |
| 48 | public: |
| 49 | MalformedInputException(int64_t off) |
| 50 | : ParseError("MalformedInputException at " + toString(off)) {} |
| 51 | |
| 52 | MalformedInputException(int64_t off, const std::string& msg) |
| 53 | : ParseError("MalformedInputException " + msg + " at " + toString(off)) {} |
| 54 | |
| 55 | MalformedInputException(const MalformedInputException& other) : ParseError(other.what()) {} |
| 56 | |
| 57 | ~MalformedInputException() noexcept override; |
| 58 | }; |
| 59 | |
| 60 | MalformedInputException::~MalformedInputException() noexcept { |
| 61 | // PASS |