Exceptions
7 min
all exceptions in the sdk inherit from the base toroexception class below is a comprehensive list of possible exceptions you may encounter transaction cancellations exception description transactiontimeout card was not presented in time and terminal aborted the transaction transactionaborted fallback exception when transaction is aborted for an unknown reason device related exceptions exception description devicenotselected no device selected both selectedbluetoothdevice and selectedusbdevice are null deviceconnectionfailed unable to connect to the selected device check if it's powered on and nearby devicedisconnected connection was closed before the action could be completed devicebusy an action is already in progress on the selected device deviceerror generic error relating to a miura device devicenotsupported device lacks a required feature (e g , touchscreen for signature capture) deviceupdatefailed error occurred during executedeviceupdate closebluetoothconnectionfailed failed to close bluetooth connection with device card related exceptions exception description unsupportedcard presented card is not supported by the terminal (e g , not emv compliant) cardreaderror error reading the card issue could be with card or terminal hardware magswipeerror generic error during a magnetic stripe transaction gateway & communication exceptions exception parameters description acceptorrejected message string reason string transaction rejected by toro gateway/acquirer terminalmanagerrejected message string reason string tms rejected the statusreport during device updates or parameter updates gatewayunavailable message string? no response received from gateway (timeout) badgatewayresponse statuscode int gateway returned an invalid response malformedresponse message string unexpected data received in gateway response transaction state exceptions exception description transactionalreadystarted cannot start a new transaction while one is in progress transactionerror generic error during transaction security & resource exceptions exception description p2peexception error during point to point encryption operation gatewaysecurityexception unable to generate or verify security trailer assetnotfound required sdk asset not found (e g , device os update files) generic exceptions exception description unknownerror generic fallback error when no other exception type applies
