RPNXCortado
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{
17 class parse_error : public std::runtime_error
18 {
19 public:
23 explicit parse_error(std::string const& message);
24 };
25
27 class validation_error : public std::runtime_error
28 {
29 public:
33 explicit validation_error(std::string const& message);
34 };
35
37 class assembly_error : public std::runtime_error
38 {
39 public:
43 explicit assembly_error(std::string const& message);
44 };
45
47 class unsupported_feature_error : public std::runtime_error
48 {
49 public:
53 explicit unsupported_feature_error(std::string const& message);
54 };
55} // namespace rpnx::cortado
56
57#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.