Exemplo 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);
        }
Exemplo n.º 2
0
 public StateMachineExceptionBase(EnumStateMachineExceptionCode exceptionCode, string message = "") : base(message)
 {
     ExceptionCode = exceptionCode;
 }