You can use Mac::Errors under the same terms as Perl itself.