RPNX::Cortado
C++23 JVM class-file, bytecode, validation, and JAR toolkit
Loading...
Searching...
No Matches
errors.hpp
Go to the documentation of this file.
1// AI Generated 2026 Ryan P. Nicholl <rnicholl@protonmail.com>
2// SPDX-License-Identifier: Apache-2.0
3
7
8#ifndef RPNX_CORTADO_ERRORS_HPP
9#define RPNX_CORTADO_ERRORS_HPP
10
11#include <stdexcept>
12#include <string>
13
14namespace rpnx::cortado
15{
21 class parse_error : public std::logic_error
22 {
23 public:
27 explicit parse_error(std::string const& message);
28 };
29
36 class validation_error : public std::logic_error
37 {
38 public:
42 explicit validation_error(std::string const& message);
43 };
44
46 class assembly_error : public std::logic_error
47 {
48 public:
52 explicit assembly_error(std::string const& message);
53 };
54
56 class unsupported_feature_error : public std::logic_error
57 {
58 public:
62 explicit unsupported_feature_error(std::string const& message);
63 };
64} // namespace rpnx::cortado
65
66#endif // RPNX_CORTADO_ERRORS_HPP
assembly_error(std::string const &message)
Constructs an error with a stable, human-readable diagnostic.
parse_error(std::string const &message)
Constructs an error with a stable, human-readable diagnostic.
unsupported_feature_error(std::string const &message)
Constructs an error with a stable, human-readable diagnostic.
validation_error(std::string const &message)
Constructs an error with a stable, human-readable diagnostic.
JVM class-file, bytecode, validation, generation, and JAR APIs.