# perldoc > Test::Unit::Error

---
type: CommandReference
command: Test::Unit::Error
mode: perldoc
section: 
source: perldoc
---

## Quick Reference

- `Test::Unit::Error` — framework exception class for runtime errors (syntax errors, not test failures)

## Name

Test::Unit::Error - unit testing framework exception class

## Synopsis

This class is not intended to be used directly.

## Description

This class is used by the framework to communicate the occurrence of run-time errors (syntax errors and the like, not failed tests, as the latter are classified as failures) generated by user code. When such an error occurs, an instance of this class will be thrown and caught internally in the framework.

## See Also

- [Test::Unit::Exception](https://perldoc.perl.org/Test::Unit::Exception)
- [Test::Unit::Assert](https://perldoc.perl.org/Test::Unit::Assert)