mgd_errno
mgd_errno -- Get latest error code
Description
`int **mgd_errno** (void)`
Minimum version: Midgard 1.4 (Bifrost)
Returns the error, if any, generated by the latest midgard function/method called. The return value can be any of these:
Error codes
MGD_ERR_OK
No error
MGD_ERR_ERROR
Unspecified error.
MGD_ERR_ACCESS_DENIED
Access denied
MGD_ERR_SITEGROUP_VIOLATION
Resource link crosses sitegroup borders
MGD_ERR_NOT_OBJECT
The variable was not properly initialized as an Midgard object.
MGD_ERR_NOT_EXISTS
Operation requested on a non-existant resource.
MGD_ERR_NO_MEM
Out of memory
MGD_ERR_INVALID_NAME
Invalid name for resource
MGD_ERR_DUPLICATE
A resource by the given name already exists
MGD_ERR_HAS_DEPENDANTS
The operation cannot be completed since it would cause orphaned resources.
MGD_ERR_RANGE
Date range error
MGD_ERR_INTERNAL
Internal error
Returns the latest errorcode.
