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
15
#include "
common-utils/errors/exceptions/fatalException.hpp
"
16
#include "
common-utils/errors/utils/errorTypes.hpp
"
17
18
namespace
CppUtils::Files
19
{
24
class
FileNotFound
:
public
Errors::FatalException
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
CppUtils::Errors::FatalException
Definition
fatalException.hpp:28
CppUtils::Errors::FatalException::FatalException
FatalException(const ErrorMessage &error_)
Definition
fatalException.hpp:35
CppUtils::Files::FileNotFound::FileNotFound
FileNotFound(const std::string &programName_, const std::string &fileName_, std::size_t lineNumber_)
Definition
fileExceptions.hpp:27
errorTypes.hpp
fatalException.hpp
CppUtils::Errors
Definition
fatalException.hpp:20
CppUtils::Files
Definition
fileParser.hpp:23
common-utilities
include
common-utils
files
utils
fileExceptions.hpp
Generated on Thu Feb 13 2025 11:55:13 for DryChem by
1.13.2