| 1234567891011121314151617181920212223 |
- //
- // exception.h
- // dice-roll
- //
- // Created by Sam Jaffe on 12/1/18.
- // Copyright © 2018 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include <stdexcept>
- namespace dice {
- class unexpected_token : public std::runtime_error {
- public:
- unexpected_token(std::string const & reason, long long position);
-
- std::string pointer(long long backup_length = -1) const;
-
- private:
- long long position;
- };
- }
|