DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
Loading...
Searching...
No Matches
fileExceptions.hpp
Go to the documentation of this file.
1// Copyright (c) 2020-2025 Cody R. Drisko. All rights reserved.
2// Licensed under the MIT License. See the LICENSE file in the project root for more information.
3//
4// Name: fileExceptions.hpp
5// Author: crdrisko
6// Date: 12/30/2020-17:26:56
7// Description: Exception classes specifically made for errors that could arrise in file-related functions
8
9#ifndef DRYCHEM_COMMON_UTILITIES_INCLUDE_COMMON_UTILS_FILES_UTILS_FILEEXCEPTIONS_HPP
10#define DRYCHEM_COMMON_UTILITIES_INCLUDE_COMMON_UTILS_FILES_UTILS_FILEEXCEPTIONS_HPP
11
12#include <cstddef>
13#include <string>
14
17
18namespace CppUtils::Files
19{
25 {
26 public:
27 FileNotFound(const std::string& programName_, const std::string& fileName_, std::size_t lineNumber_)
28 : Errors::FatalException {Errors::ErrorMessage {programName_, "Could not find the requested file.",
29 fileName_, lineNumber_}}
30 {
31 }
32 };
33} // namespace CppUtils::Files
34
35#endif
Definition fatalException.hpp:28
FatalException(const ErrorMessage &error_)
Definition fatalException.hpp:35
FileNotFound(const std::string &programName_, const std::string &fileName_, std::size_t lineNumber_)
Definition fileExceptions.hpp:27
Definition fatalException.hpp:20
Definition fileParser.hpp:23