[studio] Add NoChangeException

This commit is contained in:
2024-05-22 00:35:20 -05:00
parent c47f48eba7
commit 6971c3109a
2 changed files with 10 additions and 1 deletions

View File

@@ -4,8 +4,15 @@
#pragma once
#include <ox/std/error.hpp>
namespace studio {
class NoChangesException: public ox::Exception {
public:
inline NoChangesException(): ox::Exception(OxError(1, "Command makes no changes.")) {}
};
class UndoCommand {
public:
virtual ~UndoCommand() noexcept = default;