getLastError

Retrieves the details of the last error that occurred during a magnetic stripe card operation.

This function should be called after a read operation to get more specific information about what went wrong with each track.

The error codes returned can help diagnose issues like a dirty read head, damaged card, or incorrect swipe speed.

Return

br.com.gertec.nexus.domain.msr.model.MsrLastErrorTracks An object containing error codes for each track (Track1, Track2, Track3) from the last magnetic stripe read operation.

Throws

if there's an issue communicating with the MSR device to retrieve the last error information. This is distinct from errors that occurred during the read itself.