Skip to content

CodeTable

Zvi edited this page Apr 30, 2019 · 4 revisions

Code Table

Types of Collections

  • [g] General - Codes that can appear in different situations or within a other collection (that is listed in the "Can Occur In" tab.
  • [b] Buy Item Request - Codes that can appear after user tries buying a item.
  • [m] Money Transfer Request - Codes that can appear after user tries receiving money via a barcode.
  • [d] Discount Request - Codes that can appear after user tries getting a via a barcode.
  • [c] Credit Update Request - Codes that can appear after user tries updating his credit via a barcode.
  • [s] Scanner - Code that might appear while trying to use the scanner.

List of Collections

[g] General

General codes can be changed to another code collection with a - . For example, if there is a "error connecting to network" (ge1) in a "Money Transfer Request" (b), the changed code would be b-ge1.

Code Meaning Type Sender Can Occur In
gs0 Operation success Success Server [b, m, d, c]
ge0 An unknown error occured Error Server/App [b, m, d, c, s]
ge1 Error connecting to network Error App [b, m, d, c]
ge2 Error connecting to server Error App [b, m, d, c]
ge3 The request use-by date has expierd Error Server [b, m, d, c]
ge4 Can not sign in with user id Error App [b, m, d, c]

[b] Buy Item Request

Code Meaning Type Sender
b-e0 The item is out of stock Error Server
b-e1 The customer doesn't have enough money to buy this item Error Server
b-e2 The item doesn't exist Error Server

[m] Money Transfer Request

Code Meaning Type Sender
m-e0 The code doesn't exist Error Server
m-e1 The code was used once by customer already Error Server
m-e2 The code has expired Error Server

[d] Discount Request

Code Meaning Type Sender
d-e0 The code doesn't exist Error Server
d-e1 The code was used once by customer already Error Server
d-e2 The code has expired Error Server

[c] Credit Update Request

Code Meaning Type Sender
c-e0 The code doesn't exist Error Server
c-e1 The code has expired Error Server

[s] Scanner

Code Meaning Type Sender
s-e0 The scanned barcode can't be recognized Error Server
s-e1 User doesn't let camera permissions Error Server