48 lines
893 B
C++
Raw Normal View History

2025-02-20 05:32:33 -05:00
// Copyright 2025 xensik. All rights reserved.
2024-02-27 01:34:37 -05:00
//
// Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file.
#pragma once
namespace xsk::arc
{
2025-02-20 05:32:33 -05:00
struct error : public std::runtime_error
2024-02-27 01:34:37 -05:00
{
public:
2025-02-20 05:32:33 -05:00
explicit error(std::string const& what);
2024-02-27 01:34:37 -05:00
};
2025-02-20 05:32:33 -05:00
struct asm_error : public std::runtime_error
2024-02-27 01:34:37 -05:00
{
public:
2025-02-20 05:32:33 -05:00
explicit asm_error(std::string const& what);
2024-02-27 01:34:37 -05:00
};
2025-02-20 05:32:33 -05:00
struct disasm_error : public std::runtime_error
2024-02-27 01:34:37 -05:00
{
public:
2025-02-20 05:32:33 -05:00
explicit disasm_error(std::string const& what);
2024-02-27 01:34:37 -05:00
};
2025-02-20 05:32:33 -05:00
struct ppr_error : public std::runtime_error
2024-02-27 01:34:37 -05:00
{
public:
ppr_error(location const& loc, std::string const& what);
};
2025-02-20 05:32:33 -05:00
struct comp_error : public std::runtime_error
2024-02-27 01:34:37 -05:00
{
public:
comp_error(location const& loc, std::string const& what);
};
2025-02-20 05:32:33 -05:00
struct decomp_error : public std::runtime_error
2024-02-27 01:34:37 -05:00
{
public:
2025-02-20 05:32:33 -05:00
explicit decomp_error(std::string const& what);
2024-02-27 01:34:37 -05:00
};
} // namespace xsk::arc