Example #1
0
 public TBigSetInfoResult(TErrorCode error) : this()
 {
     this.Error = error;
 }
        private void OnError(TErrorCode errorCode)
        {
            buffer.ErrorCount++;

            if (Error != null)
            {
                Error(this, new ErrorEventArgs() { ErrorCode = errorCode, CharacterPosition = buffer.CurrentPosition, CurrentLine = buffer.LineNumber });
            }
        }
Example #3
0
 private static System.Boolean ProjectGroupIProjectGroupEventsOnError(IProjectGroupEvents ItemHandle, TErrorCode ErrorCode, System.IntPtr ErrorText)
 {
     System.Boolean Result = false;
     try
     {
         System.Object cls = ((System.Runtime.InteropServices.GCHandle)(System.IntPtr) ItemHandle).Target;
         if ((cls is ProjectGroup) && (((ProjectGroup)cls).OnError != null))
         {
             ((ProjectGroup)cls).OnError(ErrorCode, LibInvoke.StringFromNativeUtf8(ErrorText));
         }
         Result = true;
     }
     catch (System.Exception e)
     {
         LibInvoke.LibCallError(e.Message);
     }
     return(Result);
 }
 private void CondGetTokenAppend(TTokenCode tc, TErrorCode ec)
 {
     // -- Get another token only if the current one matches tc
     if (tc == token) GetTokenAppend();
     else OnError(ec);
 }