Rev 4496 | Blame | Compare with Previous | Last modification | View Log | RSS feed
namespace java in.shop2020.genericnamespace py shop2020.thriftpy.genericenum ExceptionType {NULL_POINTER = 101,ILLEGAL_ARGUMENTS = 102,DATABASE_ERROR = 103,NOT_AUTHORIZED = 104,MULTIPLE_ITEMS_FOUND = 105 // In the message we pass the comma separated item ids}const map<ExceptionType, string> EXCEPTION_TYPES_DESCRIPTION = {ExceptionType.NULL_POINTER : "Null pointer exception",ExceptionType.ILLEGAL_ARGUMENTS : "Illegal arguments, could not lookup",ExceptionType.DATABASE_ERROR : "Error in the DB layer",ExceptionType.NOT_AUTHORIZED : "Not authorized",ExceptionType.MULTIPLE_ITEMS_FOUND : "Multiple items found"};service GenericService{/*** For checking weather service is active alive or not. It also checks connectivity with database*/bool isAlive(),/*** For closing the open session in sqlalchemy*/void closeSession()}