ATOAKM uses the error handling mechanism in ATOBASE.
For iterating errors see Iterating the error "stack".
ATOAKM API methods which return errcodes will always return an ATO_AKM_ERR_.. code. For details on errcodes see AKM Error codes.