コード例 #1
0
        private void OnProcessError(Reply.Type errorCode, string errorMessage)
        {
            ErrorEventHandler handler = ProcessError;

            if (handler != null)
            {
                handler(errorCode, errorMessage);
            }
        }
コード例 #2
0
        private DownloadMotionErrorCode ConvertReplyErrorCode(Reply.Type errorCode)
        {
            switch (errorCode)
            {
            case Reply.Type.IO_ERROR:
                return(DownloadMotionErrorCode.IOError);

            case Reply.Type.DB_ERROR:
                return(DownloadMotionErrorCode.DBError);

            case Reply.Type.NO_PERMISSION:
                return(DownloadMotionErrorCode.NoPermission);

            default:
                return(DownloadMotionErrorCode.UnknownError);
            }
        }