Loading...
Searching...
No Matches
errors.hpp
Go to the documentation of this file.
1#pragma once
2
3/**
4 * Pseudopotential-related error types.
5 */
6
7#include <stdexcept>
8
9namespace q3 {
10
11/**
12 * Thrown when an input requests a pseudopotential type that is recognized
13 * but not implemented (e.g. PAW). Distinct from std::runtime_error so that
14 * callers and tests can tell "unsupported type" apart from a malformed file.
15 */
16class UnsupportedPseudopotentialTypeError : public std::runtime_error {
17 public:
18 using std::runtime_error::runtime_error;
19};
20
21} // namespace q3