---
Product: Aspose.Font
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/font/python/performanceregressionerror-perf
---

# PerformanceRegressionError

## Overview

`PerformanceRegressionError` is a class in Aspose.Font FOSS for Python.
Inherits from: `Exception`.

Raised when a performance benchmark exceeds its allowed threshold.

This class declares 2 methods for PerformanceRegressionError objects in Python programs.
Available methods include: `__init__`, `__str__`.
Public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: `metrics`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `metrics` | - | Read | Gets the metrics. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(message: str, metrics: list[PerformanceMetric])` | Calls __init__(message, metrics) on this PerformanceRegressionError instance. |
| `__str__()` → `str` | Calls __str__ on this PerformanceRegressionError instance. |

## See Also

- [Aspose.Font — Enterprise API Reference](https://reference.aspose.com/font/)