dlite-errors#

Enums

enum DLiteErrCode#

DLite error codes

Values:

enumerator dliteSuccess#

Success

enumerator dliteUnknownError#

Generic unknown error

enumerator dliteIOError#

File input/output error

enumerator dliteRuntimeError#

Unspecified run-time error

enumerator dliteIndexError#

Index out of range. Ex: int x[]={1,2,3}; x[7];

enumerator dliteTypeError#

Inappropriate argument type

enumerator dliteDivisionByZeroError#

Division by zero

enumerator dliteOverflowError#

Result too large to be represented

enumerator dliteSyntaxError#

Invalid syntax

enumerator dliteValueError#

Inappropriate argument value

enumerator dliteSystemError#

Internal error in DLite. Please report this

enumerator dliteAttributeError#

Attribute or variable not found

enumerator dliteMemoryError#

Out of memory

enumerator dliteNullReferenceError#

Unexpected NULL argument

enumerator dliteOSError#

Error calling a system function

enumerator dliteKeyError#

Mapping key not found

enumerator dliteNameError#

Name not found

enumerator dliteLookupError#

Error looking up item

enumerator dliteParseError#

Cannot parse input

enumerator dlitePermissionError#

Not enough permissions

enumerator dliteSerialiseError#

Cannot serialise output

enumerator dliteUnsupportedError#

Feature is not implemented/supported

enumerator dliteVerifyError#

Object cannot be verified

enumerator dliteInconsistentDataError#

Inconsistent data

enumerator dliteInvalidMetadataError#

Invalid metadata

enumerator dliteStorageOpenError#

Cannot open storage plugin

enumerator dliteStorageLoadError#

Cannot load storage plugin

enumerator dliteStorageSaveError#

Cannot save storage plugin

enumerator dliteOptionError#

Invalid storage plugin option

enumerator dliteMissingInstanceError#

No instance with given id can be found

enumerator dliteMissingMetadataError#

No metadata with given id can be found

enumerator dliteMetadataExistError#

Metadata with given id already exists

enumerator dliteMappingError#

Error in instance mappings

enumerator dliteProtocolError#

Error in a protocol plugin

enumerator dlitePythonError#

Error calling Python API

enumerator dliteLastError#

Functions

const char *dlite_errname(DLiteErrCode code)#

Returns the name corresponding to error code

const char *dlite_errdescr(DLiteErrCode code)#

Returns a description of the corresponding to error code

DLiteErrCode dlite_errcode(const char *name)#

Return DLite error code corresponding to name. Unknown names will return dliteUnknownError.