Aller au contenu principal

CtgError

Sealed Class: CtgError

Error Handler related to CTG Terminal

Parameters

  • errorCode - Error code identifier
  • localizedDescription - Human-readable error description
  • actionCode - Action code associated with the error

Error Types

Fail

class Fail(val actionCode: Int) : CtgError

Terminal response failed, default return value

InvalidKey

object InvalidKey : CtgError
  • Terminal response failed with invalid key
  • ErrorCode: 21
  • Description: Terminal error: Invalid key

NoKey

object NoKey : CtgError
  • Terminal response failed with no key
  • ErrorCode: 24
  • Description: Terminal error: No key

NoScript

object NoScript : CtgError
  • Terminal response failed with no script
  • ErrorCode: 27
  • Description: Terminal error: No script

ScriptFail

object ScriptFail : CtgError
  • Terminal response failed with script fail
  • ErrorCode: 26
  • Description: Terminal error: Script failed

Timeout

object Timeout : CtgError
  • Terminal response failed with time out
  • ErrorCode: 22
  • Description: Terminal error: Timeout

Unsuccessful

object Unsuccessful : CtgError
  • Terminal response failed with unsuccessful
  • ErrorCode: 25
  • Description: Terminal error: Unsuccessful

TooManyRequest

object TooManyRequest : CtgError
  • Terminal response failed with exceed maximum 3 concurrent commands. Any additional commands can be sent once one of the 3 previously sent commands is completed
  • ErrorCode: 28
  • Description: Terminal error: Exceed maximum 3 concurrent commands

Properties

actionCode: Int

Action code associated with the error

errorCode: Int

Error code identifier

localizedDescription: String

Human-readable description of the error

See Also