| 123456789101112131415161718192021 |
- //
- // exception.h
- // graphics
- //
- // Created by Sam Jaffe on 7/6/19.
- // Copyright © 2019 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include <stdexcept>
- #include <string>
- namespace graphics {
- struct file_read_error : std::runtime_error {
- file_read_error(std::string const & file)
- : std::runtime_error("Unable to read file " + file) {}
- file_read_error(std::string const & type, std::string const & file)
- : std::runtime_error("Unable to read " + type + " file " + file) {}
- };
- }
|