Test::Unit::Exception - unit testing framework exception class
| Use Case | Command | Description |
|---|---|---|
| Catch assertion failures | eval { $assert->assert(...) }; if ($@) { ... } | Capture exceptions thrown by assertion methods |
| Subclass for custom errors | use base 'Test::Unit::Exception'; | Extend the base class to create custom exception types |
This class is not intended to be used directly
This class is used by the framework to communicate the result of assertions, which will throw an instance of a subclass of this class in case of errors or failures.
Copyright (c) 2000-2002, 2005 the PerlUnit Development Team (see Test::Unit or the AUTHORS file included in this distribution).
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-15 20:21 @216.73.216.208
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)