1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error("Failed to apply hook at target address")]
6 FailedToHook,
7 #[error("Failed to undo hook at address")]
8 FailedToUndoHook,
9 #[error("Failed to find func by symbol")]
10 FuncNotFound,
11 #[error("Memory error happend, error type: MemoryOperationError")]
12 MemoryOperationError,
13 #[error("Memory error happend, error type: NotSupportAllocateExecutableMemory")]
14 NotSupportAllocateExecutableMemory,
15 #[error("Memory error happend, error type: MemoryOperationErrorNotEnough")]
16 MemoryOperationErrorNotEnough,
17 #[error("Memory error happend, error type: MemoryOperationErrorNone")]
18 MemoryOperationErrorNone,
19}