public string targetSiteName; // método que dió el error public OverlayErrorMsg(OverlayRequest request, DodoException exception) : base(request) { error_description = exception.error_description; error_details = exception.error_details; error_code = exception.error_code; error_level = exception.error_level; errorLocation = exception.errorLocation; stackTrace = exception.stackTrace; typeException = exception.typeException; typeRequest = exception.typeRequest; targetSiteName = exception.targetSiteName; }
public DodoException(OverlayErrorMsg oem) : base(oem.error_description) { error_description = oem.error_description; error_details = oem.error_details; error_code = (int)oem.error_code; error_level = oem.error_level; errorLocation = oem.errorLocation; typeException = oem.typeException; typeRequest = oem.typeRequest; stackTrace = oem.stackTrace; targetSiteName = oem.targetSiteName; exceptionOverlay = oem; }
public void SetExceptionProperties(Exception err) { Exception errTmp = err.InnerException == null ? err : err.InnerException; errorLocation = ErrorLocations.remote; error_code = (int)ERROR_CODES.E_EXCEPTION; error_description = errTmp.Message; errorLocation = ErrorLocations.remote; stackTrace = errTmp.StackTrace; if (errTmp != null && errTmp.TargetSite != null) { error_details = errTmp.TargetSite.Name; targetSiteName = errTmp.TargetSite.ToString(); } typeException = err.GetType().AssemblyQualifiedName; }