[studio] Add NoChangeException
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user