16#include "Reflection.h"
106struct ErrorCodeEnum : util::Reflection<ErrorCodeEnum, ErrorCode> {
108 static constexpr long minVal = 0;
110 static bool isValid(
auto value) {
return value >= minVal && value <= maxVal; }
112 static const char *prefix() {
return "ERROR"; }
113 static const char *key(
long value)
184 case ERROR_COUNT:
return "???";
VirtualC64 project namespace.
Definition CmdQueue.cpp:16
ERROR_CODE
Error condition.
Definition ErrorTypes.h:22
@ ERROR_DIR_CANT_CREATE
Unable to create a directory.
Definition ErrorTypes.h:54
@ ERROR_FILE_TYPE_UNSUPPORTED
Unsupported file type.
Definition ErrorTypes.h:61
@ ERROR_FS_CANT_IMPORT
Failed to import a file system.
Definition ErrorTypes.h:97
@ ERROR_OPT_INV_ARG
Invalid argument.
Definition ErrorTypes.h:34
@ ERROR_CRT_TOO_MANY_PACKETS
CRT file contains too many Rom packets.
Definition ErrorTypes.h:88
@ ERROR_ROM_KERNAL_MISSING
No Kernel Rom installed.
Definition ErrorTypes.h:69
@ ERROR_DRV_UNCONNECTED
Floppy drive is not connected.
Definition ErrorTypes.h:83
@ ERROR_POWERED_ON
The emulator is powered on.
Definition ErrorTypes.h:29
@ ERROR_REC_LAUNCH
Can't launch the screen recorder.
Definition ErrorTypes.h:74
@ ERROR_BP_ALREADY_SET
Breakpoint is already set.
Definition ErrorTypes.h:44
@ ERROR_FILE_NOT_FOUND
File not found error.
Definition ErrorTypes.h:56
@ ERROR_OPT_UNSUPPORTED
Unsupported configuration option.
Definition ErrorTypes.h:33
@ ERROR_UNKNOWN
Unclassified error condition.
Definition ErrorTypes.h:24
@ ERROR_INVALID_KEY
Invalid property key.
Definition ErrorTypes.h:39
@ ERROR_FS_CORRUPTED
File system is corrupted.
Definition ErrorTypes.h:94
@ ERROR_FS_EXPECTED_VAL
Unexpected value found.
Definition ErrorTypes.h:98
@ ERROR_FILE_CANT_CREATE
Can't create file.
Definition ErrorTypes.h:64
@ ERROR_DIR_NOT_FOUND
Directory does not exist.
Definition ErrorTypes.h:52
@ ERROR_FILE_CANT_READ
Can't read from file.
Definition ErrorTypes.h:62
@ ERROR_CRT_UNKNOWN
Unknown cartridge type.
Definition ErrorTypes.h:86
@ ERROR_CRT_CORRUPTED_PACKET
CRT file contains a corrupted Rom package.
Definition ErrorTypes.h:89
@ ERROR_BP_NOT_FOUND
Breakpoint is not set.
Definition ErrorTypes.h:43
@ ERROR_DIR_ACCESS_DENIED
File access denied.
Definition ErrorTypes.h:53
@ ERROR_FS_UNSUPPORTED
Unsupported file system.
Definition ErrorTypes.h:92
@ ERROR_FS_EXPECTED_MIN
Value is too small.
Definition ErrorTypes.h:99
@ ERROR_SNAP_TOO_OLD
Snapshot was created with an older version.
Definition ErrorTypes.h:77
@ ERROR_WP_NOT_FOUND
Watchpoint is not set.
Definition ErrorTypes.h:45
@ ERROR_SNAP_IS_BETA
Snapshot was created with a beta release.
Definition ErrorTypes.h:79
@ ERROR_FILE_ACCESS_DENIED
File access denied.
Definition ErrorTypes.h:59
@ ERROR_FILE_TYPE_MISMATCH
File type mismatch.
Definition ErrorTypes.h:60
@ ERROR_FILE_IS_DIRECTORY
The file is a directory.
Definition ErrorTypes.h:58
@ ERROR_FS_EXPECTED_MAX
Value is too big.
Definition ErrorTypes.h:100
@ ERROR_ROM_DRIVE_MISSING
No Floppy Drive Rom installed.
Definition ErrorTypes.h:70
@ ERROR_ROM_MEGA65_MISMATCH
MEGA65 Roms have different version numbers.
Definition ErrorTypes.h:71
@ ERROR_FILE_CANT_WRITE
Can't write to file.
Definition ErrorTypes.h:63
@ ERROR_SYNTAX
Syntax error.
Definition ErrorTypes.h:40
@ ERROR_FS_HAS_CYCLES
File system has cyclic links.
Definition ErrorTypes.h:96
@ ERROR_SNAP_CORRUPTED
Snapshot data is corrupted.
Definition ErrorTypes.h:80
@ ERROR_FILE_EXISTS
File already exists.
Definition ErrorTypes.h:57
@ ERROR_OPT_LOCKED
The option is temporarily locked.
Definition ErrorTypes.h:36
@ ERROR_LAUNCH
Launch error.
Definition ErrorTypes.h:27
@ ERROR_OK
No error.
Definition ErrorTypes.h:23
@ ERROR_OUT_OF_MEMORY
Out of memory.
Definition ErrorTypes.h:49
@ ERROR_CRT_UNSUPPORTED
Unsupported cartridge type.
Definition ErrorTypes.h:87
@ ERROR_FS_WRONG_CAPACITY
Wrong file system capacity.
Definition ErrorTypes.h:93
@ ERROR_POWERED_OFF
The emulator is powered off.
Definition ErrorTypes.h:28
@ ERROR_ROM_BASIC_MISSING
No Basic Rom installed.
Definition ErrorTypes.h:67
@ ERROR_DIR_NOT_EMPTY
Directory is not empty.
Definition ErrorTypes.h:55
@ ERROR_FS_HAS_NO_FILES
File system is empty.
Definition ErrorTypes.h:95
@ ERROR_OPT_INV_ID
Invalid component id.
Definition ErrorTypes.h:35
@ ERROR_SNAP_TOO_NEW
Snapshot was created with a later version.
Definition ErrorTypes.h:78
@ ERROR_RUNNING
The emulator is running.
Definition ErrorTypes.h:30
@ ERROR_ROM_CHAR_MISSING
No Character Rom installed.
Definition ErrorTypes.h:68
@ ERROR_WP_ALREADY_SET
Watchpoint is already set.
Definition ErrorTypes.h:46