public GenericError(ApplicationErrorEnum singleError, Exception exception) { this.Code = singleError.GetHashCode().ToString(); this.Description = singleError.GetDisplayName(); this.Name = singleError.GetType().ToString(); this.Exception = exception; }
public GenericError(ApplicationErrorEnum singleError, Exception exception, string errorMessage) { this.Code = singleError.GetHashCode().ToString(); this.Description = errorMessage; this.Name = EnumExtensions.GetDisplayName(singleError); this.Exception = exception; }
public GenericError(ApplicationErrorEnum singleError) { this.Code = singleError.GetHashCode().ToString(); this.Description = singleError.GetDisplayName(); this.Name = EnumExtensions.GetDescription(singleError); this.Exception = null; }