Ejemplo n.º 1
0
        protected void Validate(AXT_FUNC_RESULT code, string msg)
        {
            if (code == AXT_FUNC_RESULT.AXT_RT_SUCCESS)
            {
                return;
            }

            msg = $"Occurred {code.ToString()}({(UInt32)code}) exception in {msg}";

            throw new AxtException(msg, code);
        }
Ejemplo n.º 2
0
 public AxtException(string msg           = "Occurred Ajinextek device exception!",
                     AXT_FUNC_RESULT code = AXT_FUNC_RESULT.AXT_RT_SUCCESS)
     : base(msg)
 {
     Code = code;
 }