Skip to content

CoreError ​

cpp
#include <Infrastructure/CoreError.h>
cpp
struct CoreError

Defined in Infrastructure/CoreError.h:18

Error thrown if a request does not match the state of the emulator.

Public Methods ​

ReturnNameDescription
const char *errstr virtual const inline noexcept overrideReturns the name of the error code.
CoreError explicitCreates an error with an error code and a descriptive string.
CoreError inline explicitCreates an error with an error code and a descriptive string.
CoreError inline explicitCreates an error with an error code and a file path.
CoreError inline explicitCreates an error with an error code and a number.
CoreError inline explicitCreates an error with an error code.

errstr ​

virtual const inline noexcept override

cpp
virtual inline const char * errstr() const noexcept override

Defined in Infrastructure/CoreError.h:73

Returns the name of the error code.

Reimplements ​


CoreError ​

explicit

cpp
explicit CoreError(long fault, const string & s)

Defined in Infrastructure/CoreError.h:130

Creates an error with an error code and a descriptive string.


CoreError ​

inline explicit

cpp
inline explicit CoreError(long fault, const char * s)

Defined in Infrastructure/CoreError.h:132

Creates an error with an error code and a descriptive string.


CoreError ​

inline explicit

cpp
inline explicit CoreError(long fault, const fs::path & p)

Defined in Infrastructure/CoreError.h:134

Creates an error with an error code and a file path.


CoreError ​

inline explicit

cpp
inline explicit CoreError(long fault, std::integral auto v)

Defined in Infrastructure/CoreError.h:136

Creates an error with an error code and a number.


CoreError ​

inline explicit

cpp
inline explicit CoreError(long fault)

Defined in Infrastructure/CoreError.h:138

Creates an error with an error code.

Public Static Attributes ​

ReturnNameDescription
longOK static constexprNo error.
longUNKNOWN static constexprUnclassified error condition.
longLAUNCH_FAILED static constexprLaunching the emulator thread failed.
longNOT_LAUNCHED static constexprThe emulator thread is not running.
longALREADY_LAUNCHED static constexprThe emulator thread has been launched already.
longPOWERED_OFF static constexprThe emulator is powered off.
longPOWERED_ON static constexprThe emulator is powered on.
longRUNNING static constexprThe emulator is running.
longOPT_UNSUPPORTED static constexprUnsupported configuration option.
longOPT_INV_ARG static constexprInvalid argument.
longOPT_INV_ID static constexprInvalid component id.
longOPT_LOCKED static constexprThe option is temporarily locked.
longINVALID_KEY static constexprInvalid property key.
longSYNTAX static constexprSyntax error.
longCPU_UNSUPPORTED static constexprUnsupported CPU model.
longGUARD_NOT_FOUND static constexprGuard is not set.
longGUARD_ALREADY_SET static constexprGuard is already set.
longBP_NOT_FOUND static constexprBreakpoint is not set (DEPRECATED).
longBP_ALREADY_SET static constexprBreakpoint is already set (DEPRECATED).
longWP_NOT_FOUND static constexprWatchpoint is not set (DEPRECATED).
longWP_ALREADY_SET static constexprWatchpoint is already set (DEPRECATED).
longCP_NOT_FOUND static constexprCatchpoint is not set (DEPRECATED).
longCP_ALREADY_SET static constexprCatchpoint is already set (DEPRECATED).
longOUT_OF_MEMORY static constexprOut of memory.
longCHIP_RAM_MISSING static constexprNo Chip RAM is installed.
longCHIP_RAM_LIMIT static constexprThe Agnus revision cannot address the selected amount of Chip RAM.
longAROS_RAM_LIMIT static constexprThe Aros Kickstart needs more memory than installed.
longROM_MISSING static constexprNo Kickstart Rom is installed.
longAROS_NO_EXTROM static constexprThe Aros Kickstart needs an Extension Rom, but none is installed.
longHDC_INIT static constexprA hard drive could not be initialized.
longREG_READ_ONLY static constexprThe register is read-only.
longREG_WRITE_ONLY static constexprThe register is write-only.
longREG_UNUSED static constexprThe register is unused.
longADDR_UNALIGNED static constexprThe address is not aligned.
longOSDB static constexprThe OS debugger reported an error.
longHUNK_BAD_COOKIE static constexprThe hunk file has an invalid magic cookie.
longHUNK_BAD_HEADER static constexprThe hunk file has a bad header.
longHUNK_NO_SECTIONS static constexprThe hunk file contains no hunks.
longHUNK_UNSUPPORTED static constexprThe hunk file contains an unsupported hunk.
longHUNK_CORRUPTED static constexprThe hunk structure is corrupted.

OK ​

static constexpr

cpp
long OK =   0

Defined in Infrastructure/CoreError.h:20

No error.


UNKNOWN ​

static constexpr

cpp
long UNKNOWN =   1

Defined in Infrastructure/CoreError.h:21

Unclassified error condition.


LAUNCH_FAILED ​

static constexpr

cpp
long LAUNCH_FAILED = 100

Defined in Infrastructure/CoreError.h:24

Launching the emulator thread failed.


NOT_LAUNCHED ​

static constexpr

cpp
long NOT_LAUNCHED = 101

Defined in Infrastructure/CoreError.h:25

The emulator thread is not running.


ALREADY_LAUNCHED ​

static constexpr

cpp
long ALREADY_LAUNCHED = 102

Defined in Infrastructure/CoreError.h:26

The emulator thread has been launched already.


POWERED_OFF ​

static constexpr

cpp
long POWERED_OFF = 103

Defined in Infrastructure/CoreError.h:27

The emulator is powered off.


POWERED_ON ​

static constexpr

cpp
long POWERED_ON = 104

Defined in Infrastructure/CoreError.h:28

The emulator is powered on.


RUNNING ​

static constexpr

cpp
long RUNNING = 105

Defined in Infrastructure/CoreError.h:29

The emulator is running.


OPT_UNSUPPORTED ​

static constexpr

cpp
long OPT_UNSUPPORTED = 200

Defined in Infrastructure/CoreError.h:32

Unsupported configuration option.


OPT_INV_ARG ​

static constexpr

cpp
long OPT_INV_ARG = 201

Defined in Infrastructure/CoreError.h:33

Invalid argument.


OPT_INV_ID ​

static constexpr

cpp
long OPT_INV_ID = 202

Defined in Infrastructure/CoreError.h:34

Invalid component id.


OPT_LOCKED ​

static constexpr

cpp
long OPT_LOCKED = 203

Defined in Infrastructure/CoreError.h:35

The option is temporarily locked.


INVALID_KEY ​

static constexpr

cpp
long INVALID_KEY = 300

Defined in Infrastructure/CoreError.h:38

Invalid property key.


SYNTAX ​

static constexpr

cpp
long SYNTAX = 301

Defined in Infrastructure/CoreError.h:39

Syntax error.


CPU_UNSUPPORTED ​

static constexpr

cpp
long CPU_UNSUPPORTED = 400

Defined in Infrastructure/CoreError.h:42

Unsupported CPU model.


GUARD_NOT_FOUND ​

static constexpr

cpp
long GUARD_NOT_FOUND = 401

Defined in Infrastructure/CoreError.h:43

Guard is not set.


GUARD_ALREADY_SET ​

static constexpr

cpp
long GUARD_ALREADY_SET = 402

Defined in Infrastructure/CoreError.h:44

Guard is already set.


BP_NOT_FOUND ​

static constexpr

cpp
long BP_NOT_FOUND = 403

Defined in Infrastructure/CoreError.h:45

Breakpoint is not set (DEPRECATED).


BP_ALREADY_SET ​

static constexpr

cpp
long BP_ALREADY_SET = 404

Defined in Infrastructure/CoreError.h:46

Breakpoint is already set (DEPRECATED).


WP_NOT_FOUND ​

static constexpr

cpp
long WP_NOT_FOUND = 405

Defined in Infrastructure/CoreError.h:47

Watchpoint is not set (DEPRECATED).


WP_ALREADY_SET ​

static constexpr

cpp
long WP_ALREADY_SET = 406

Defined in Infrastructure/CoreError.h:48

Watchpoint is already set (DEPRECATED).


CP_NOT_FOUND ​

static constexpr

cpp
long CP_NOT_FOUND = 407

Defined in Infrastructure/CoreError.h:49

Catchpoint is not set (DEPRECATED).


CP_ALREADY_SET ​

static constexpr

cpp
long CP_ALREADY_SET = 408

Defined in Infrastructure/CoreError.h:50

Catchpoint is already set (DEPRECATED).


OUT_OF_MEMORY ​

static constexpr

cpp
long OUT_OF_MEMORY = 500

Defined in Infrastructure/CoreError.h:53

Out of memory.


CHIP_RAM_MISSING ​

static constexpr

cpp
long CHIP_RAM_MISSING = 501

Defined in Infrastructure/CoreError.h:54

No Chip RAM is installed.


CHIP_RAM_LIMIT ​

static constexpr

cpp
long CHIP_RAM_LIMIT = 502

Defined in Infrastructure/CoreError.h:55

The Agnus revision cannot address the selected amount of Chip RAM.


AROS_RAM_LIMIT ​

static constexpr

cpp
long AROS_RAM_LIMIT = 503

Defined in Infrastructure/CoreError.h:56

The Aros Kickstart needs more memory than installed.


ROM_MISSING ​

static constexpr

cpp
long ROM_MISSING = 504

Defined in Infrastructure/CoreError.h:57

No Kickstart Rom is installed.


AROS_NO_EXTROM ​

static constexpr

cpp
long AROS_NO_EXTROM = 505

Defined in Infrastructure/CoreError.h:58

The Aros Kickstart needs an Extension Rom, but none is installed.


HDC_INIT ​

static constexpr

cpp
long HDC_INIT = 600

Defined in Infrastructure/CoreError.h:60

A hard drive could not be initialized.


REG_READ_ONLY ​

static constexpr

cpp
long REG_READ_ONLY = 700

Defined in Infrastructure/CoreError.h:62

The register is read-only.


REG_WRITE_ONLY ​

static constexpr

cpp
long REG_WRITE_ONLY = 701

Defined in Infrastructure/CoreError.h:63

The register is write-only.


REG_UNUSED ​

static constexpr

cpp
long REG_UNUSED = 702

Defined in Infrastructure/CoreError.h:64

The register is unused.


ADDR_UNALIGNED ​

static constexpr

cpp
long ADDR_UNALIGNED = 703

Defined in Infrastructure/CoreError.h:65

The address is not aligned.


OSDB ​

static constexpr

cpp
long OSDB = 800

Defined in Infrastructure/CoreError.h:67

The OS debugger reported an error.


static constexpr

cpp
long HUNK_BAD_COOKIE = 801

Defined in Infrastructure/CoreError.h:68

The hunk file has an invalid magic cookie.


HUNK_BAD_HEADER ​

static constexpr

cpp
long HUNK_BAD_HEADER = 802

Defined in Infrastructure/CoreError.h:69

The hunk file has a bad header.


HUNK_NO_SECTIONS ​

static constexpr

cpp
long HUNK_NO_SECTIONS = 803

Defined in Infrastructure/CoreError.h:70

The hunk file contains no hunks.


HUNK_UNSUPPORTED ​

static constexpr

cpp
long HUNK_UNSUPPORTED = 804

Defined in Infrastructure/CoreError.h:71

The hunk file contains an unsupported hunk.


HUNK_CORRUPTED ​

static constexpr

cpp
long HUNK_CORRUPTED = 805

Defined in Infrastructure/CoreError.h:72

The hunk structure is corrupted.