in src/main/java/com/awsblog/queueing/model/ReturnStatusEnum.java [30:42]
public String getErrorMessage() {
if (this == ReturnStatusEnum.SUCCESS) return "No error";
else if (this == ReturnStatusEnum.FAILED_ID_NOT_PROVIDED) return "ID was not provided!";
else if (this == ReturnStatusEnum.FAILED_ID_NOT_FOUND) return "Provided Shipment ID was not found in the Dynamo DB!";
else if (this == ReturnStatusEnum.FAILED_RECORD_NOT_CONSTRUCTED) return "Shipment record not yet fully constructed .. cannot execute API!";
else if (this == ReturnStatusEnum.FAILED_ON_CONDITION) return "Condition on the 'version' attribute has failed!";
else if (this == ReturnStatusEnum.FAILED_EMPTY_QUEUE) return "Cannot proceed, queue is empty!";
else if (this == ReturnStatusEnum.FAILED_ILLEGAL_STATE) return "Illegal state, cannot proceed!";
else if (this == ReturnStatusEnum.FAILED_DYNAMO_ERROR) return "Unspecified DynamoDB error is encountered!";
return "API was not called!";
}