Beispiel #1
0
 public CEBakanlikException(EnumExceptionType pExceptionType, string pErrorMessage, string pErrorCode)
 {
     CleanParameters();
     this.mExType       = pExceptionType;
     this._errorMessage = pErrorMessage;
     this._errorCode    = pErrorCode;
 }
Beispiel #2
0
 public CEBakanlikException()
 {
     CleanParameters();
     this.mExType       = EnumExceptionType.SystemException;
     this._errorMessage = "Hata Oluştu";
     this._errorCode    = "SistemHatası";
 }
Beispiel #3
0
 public CEBakanlikException(EnumExceptionType pExceptionType, string pErrorDetail, string pErrorMessage, string pErrorCode, string pErrorMethodName, string pLogKey)
 {
     CleanParameters();
     this.mExType          = pExceptionType;
     this.mErrorDetail     = pErrorDetail;
     this._errorMessage    = pErrorMessage;
     this._errorCode       = pErrorCode;
     this.mErrorMethodName = pErrorMethodName;
     this.mLogKey          = pLogKey;
 }
Beispiel #4
0
        public AurigoTestException(IDriverLinker driverRef, EnumExceptionType exceptionType, string msg) : base(msg)
        {
            DriverReference = driverRef;

            if (DriverReference != null)
            {
                ScreenshotPath = Helpers.GetImageLogFileWithFullPath();
                //Take the screenshot
                Screenshot image = ((ITakesScreenshot)DriverReference.PrimaryDriver).GetScreenshot();
                //Save the screenshot
                image.SaveAsFile(ScreenshotPath, ScreenshotImageFormat.Png);
            }
        }
Beispiel #5
0
 public AurigoTestException(IDriverLinker driverRef, EnumExceptionType exceptionType, string msg, Exception innerException) : base(msg, innerException)
 {
     DriverReference = driverRef;
 }