pub fn throw(ex: &ClassEntry, message: &str) -> Result<()> {
    throw_with_code(ex, 0, message)
}
Throws an exception with a given message. See [`ClassEntry`] for some
built-in exception types.

Returns a result containing nothing if the exception was successfully
thrown.

# Parameters

* `ex` - The exception type to throw.
* `message` - The message to display when throwing the exception.

# Errors

* [`Error::InvalidException`] - If the exception type is an interface or
abstract class.
* If the message contains NUL bytes.

# Examples

```no_run
use ext_php_rs::{zend::{ce, ClassEntry}, exception::throw};

throw(ce::compile_error(), "This is a CompileError.");
```
src/exception.rs