Class FGPUException

Inheritance Relationships

Base Type

  • public exception

Derived Types

Class Documentation

class FGPUException : public exception

Base class for exceptions thrown

Subclassed by ArrayMessageWriteConflict, CUDAError, CurveException, DeviceError, DifferentModel, DuplicateEnvProperty, EnvDescriptionAlreadyLoaded, ExpiredWeakPtr, InvalidAgent, InvalidAgentFunc, InvalidAgentName, InvalidAgentState, InvalidAgentVar, InvalidArgument, InvalidCudaAgent, InvalidCudaAgentDesc, InvalidCudaAgentMapSize, InvalidCudaAgentState, InvalidCUDAComputeCapability, InvalidCUDAdevice, InvalidCudaMessage, InvalidDependencyGraph, InvalidEnvProperty, InvalidEnvPropertyType, InvalidFilePath, InvalidFuncLayerIndx, InvalidHashList, InvalidHostFunc, InvalidInputFile, InvalidLayerMember, InvalidMapEntry, InvalidMemoryCapacity, InvalidMessage, InvalidMessageData, InvalidMessageName, InvalidMessageSize, InvalidMessageType, InvalidMessageVar, InvalidOperation, InvalidParent, InvalidPopulationData, InvalidStateName, InvalidSubAgentName, InvalidSubModel, InvalidSubModelName, InvalidVarArrayLen, InvalidVarType, OutOfBoundsException, OutOfMemory, OutOfRangeVarArray, RapidJSONError, ReadOnlyEnvProperty, ReservedName, TinyXMLError, UnknownInternalError, UnsupportedFileType, UnsupportedVarType, UnsycnedCUDAEventTimer, VersionMismatch, VisualisationException

Public Functions


Constructs the FGPUException object.

A constructor


Attempts to append ‘FILE (LINE): ‘ to err_message

const char *what() const noexcept override

Returns the explanatory string.


Pointer to a nullptr-terminated string with explanatory information. The pointer is guaranteed to be valid at least until the exception object from which it is obtained is destroyed, or until a non-const member function on the FGPUException object is called.

virtual const char *exception_type() const = 0

Public Static Functions

static void setLocation(const char *_file, const unsigned int &_line)

Sets internal members file and line, which are used by constructor

Protected Attributes

std::string err_message

Protected Static Functions

static std::string parseArgs(const char *format, va_list argp)

Parses va_list to a string using vsnprintf