001// Automatically generated by the Thrifty compiler; do not edit!
002// Generated on: 2020-11-05T09:22:38.100Z
003// Source: J:\facelog\facelog-service\IFaceLog.thrift at 11:1
004package net.gdface.facelog.client.thrift;
005
006import javax.annotation.Generated;
007
008@Generated(
009    value = "com.microsoft.thrifty.gen.ThriftyCodeGenerator",
010    comments = "https://github.com/microsoft/thrifty"
011)
012public enum SecurityExceptionType {
013  UNCLASSIFIED(0),
014
015  INVALID_MAC(1),
016
017  INVALID_SN(2),
018
019  OCCUPIED_SN(3),
020
021  INVALID_TOKEN(4),
022
023  INVALID_DEVICE_ID(5),
024
025  INVALID_PERSON_ID(6),
026
027  INVALID_PASSWORD(7),
028
029  REJECT_APPLY(8),
030
031  ACCESS_DENIED(9),
032
033  TABLE_INSERT_DENIED(10),
034
035  TABLE_UPDATE_DENIED(11),
036
037  TABLE_DELETE_DENIED(12),
038
039  TOO_LOW_RANK(13);
040
041  public final int value;
042
043  SecurityExceptionType(int value) {
044    this.value = value;
045  }
046
047  public static SecurityExceptionType findByValue(int value) {
048    switch (value) {
049      case 0: return UNCLASSIFIED;
050      case 1: return INVALID_MAC;
051      case 2: return INVALID_SN;
052      case 3: return OCCUPIED_SN;
053      case 4: return INVALID_TOKEN;
054      case 5: return INVALID_DEVICE_ID;
055      case 6: return INVALID_PERSON_ID;
056      case 7: return INVALID_PASSWORD;
057      case 8: return REJECT_APPLY;
058      case 9: return ACCESS_DENIED;
059      case 10: return TABLE_INSERT_DENIED;
060      case 11: return TABLE_UPDATE_DENIED;
061      case 12: return TABLE_DELETE_DENIED;
062      case 13: return TOO_LOW_RANK;
063      default: return null;
064    }
065  }
066}