# getErrorCode method

BiosealError getErrorCode()

Gets the the log item error code if any.

return The log item error code if any. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    BiosealError getErrorCode() {
      Pointer<Int32> pErrorCode = calloc();
      try {
        var err = biosealSDK.id3BiosealLogItem_GetErrorCode(_pHandle.value, pErrorCode);
        if (err != BiosealError.success.value) {
          throw BiosealException(err);
        }
        final vErrorCode = BiosealErrorX.fromValue(pErrorCode.value);
        return vErrorCode;
      } finally {
        calloc.free(pErrorCode);
      }
    }