Esempio n. 1
0
        /// <summary>轉成錯誤代碼</summary>
        /// <param name="instance"></param>
        /// <returns></returns>
        public static string ToErroeCode(this EnumStateMachineExceptionCode instance)
        {
            var intCode    = (int)instance;
            var stringCode = intCode.ToString("000000");

            return(stringCode);
        }
Esempio n. 2
0
 public StateMachineExceptionBase(EnumStateMachineExceptionCode exceptionCode, string message = "") : base(message)
 {
     ExceptionCode = exceptionCode;
 }