2025-02-20 06:23:40 -05:00
|
|
|
// Copyright 2025 xensik. All rights reserved.
|
2024-02-27 03:09:30 -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::gsc
|
|
|
|
{
|
|
|
|
|
2025-02-20 06:23:40 -05:00
|
|
|
struct error : public std::runtime_error
|
2024-02-27 03:09:30 -05:00
|
|
|
{
|
|
|
|
public:
|
2025-02-20 06:23:40 -05:00
|
|
|
explicit error(std::string const& what);
|
2024-02-27 03:09:30 -05:00
|
|
|
};
|
|
|
|
|
2025-02-20 06:23:40 -05:00
|
|
|
struct asm_error : public std::runtime_error
|
2024-02-27 03:09:30 -05:00
|
|
|
{
|
|
|
|
public:
|
2025-02-20 06:23:40 -05:00
|
|
|
explicit asm_error(std::string const& what);
|
2024-02-27 03:09:30 -05:00
|
|
|
};
|
|
|
|
|
2025-02-20 06:23:40 -05:00
|
|
|
struct disasm_error : public std::runtime_error
|
2024-02-27 03:09:30 -05:00
|
|
|
{
|
|
|
|
public:
|
2025-02-20 06:23:40 -05:00
|
|
|
explicit disasm_error(std::string const& what);
|
2024-02-27 03:09:30 -05:00
|
|
|
};
|
|
|
|
|
2025-02-20 06:23:40 -05:00
|
|
|
struct ppr_error : public std::runtime_error
|
2024-02-27 03:09:30 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ppr_error(location const& loc, std::string const& what);
|
|
|
|
};
|
|
|
|
|
2025-02-20 06:23:40 -05:00
|
|
|
struct comp_error : public std::runtime_error
|
2024-02-27 03:09:30 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
comp_error(location const& loc, std::string const& what);
|
|
|
|
};
|
|
|
|
|
2025-02-20 06:23:40 -05:00
|
|
|
struct decomp_error : public std::runtime_error
|
2024-02-27 03:09:30 -05:00
|
|
|
{
|
|
|
|
public:
|
2025-02-20 06:23:40 -05:00
|
|
|
explicit decomp_error(std::string const& what);
|
2024-02-27 03:09:30 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace xsk::gsc
|