PHPackages                             aurimasniekis/throws - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aurimasniekis/throws

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aurimasniekis/throws
====================

PHP Throws helpers. Short hand functions for throwing exceptions

1.0.0(7y ago)05MITPHPPHP &gt;=7.3

Since Apr 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aurimasniekis/throws)[ Packagist](https://packagist.org/packages/aurimasniekis/throws)[ Docs](https://github.com/aurimasniekis/throws)[ RSS](/packages/aurimasniekis-throws/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Throws
======

[](#throws)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7c40d434b92d6afdc3fc28887e54342c08a609905e6a134e496ca4cb4b55ce8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617572696d61736e69656b69732f7468726f77732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aurimasniekis/throws)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/e2fbd954011b2282d7820851626051bf534765000f3d690776f0cbab4c6e7cf6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617572696d61736e69656b69732f7468726f77732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/aurimasniekis/throws)[![Coverage Status](https://camo.githubusercontent.com/29c4b1aa895e1a7001b64b8ae8832a27c92b23b396901d90ddd5a4cd82412280/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f617572696d61736e69656b69732f7468726f77732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/aurimasniekis/throws/code-structure)[![Quality Score](https://camo.githubusercontent.com/84b1d15002288084bb3946310d2fa8879827c25082c4a89479013fbe7761bf02/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f617572696d61736e69656b69732f7468726f77732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/aurimasniekis/throws)[![Total Downloads](https://camo.githubusercontent.com/647b8df6bf1ae1906c9ab30e905b08015230d7be09d74aaddd73ba3fceacf633/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617572696d61736e69656b69732f7468726f77732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aurimasniekis/throws)

PHP Library which provides functions which **Throws** exception

Install
-------

[](#install)

Via Composer

```
$ composer require aurimasniekis/throws
```

Usage
-----

[](#usage)

It is pretty simple all the functions are defined under `Throws\\` namespace.

Simplest function is `thr` which accept exception as argument and just throws it:

```
