System.Management.Automation.ErrorCategoryInfo.ErrorCategoryInfo C# (CSharp) Method

ErrorCategoryInfo() private method

private ErrorCategoryInfo ( Exception exception, ErrorCategory category ) : System
exception System.Exception
category ErrorCategory
return System
        internal ErrorCategoryInfo(Exception exception, ErrorCategory category)
        {
            this.Category = category;
            this.Activity = string.Empty;
            this.Reason = exception.GetType().Name;
            this.TargetName = string.Empty;
            this.TargetType = string.Empty;
        }