# pyo3::PyErrArguments - Rust
Helper conversion trait that allows to use custom arguments for lazy exception construction.
Keywords: rust, rustlang, rust-lang, PyErrArguments

# Trait pyo3::PyErrArguments [−] [src]

    pub trait PyErrArguments: Send + Sync {
        fn arguments(self, py: Python<'_>) -> PyObject;
    }

Helper conversion trait that allows to use custom arguments for lazy exception construction.

## Required methods

### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

Arguments for exception

Loading content...

## Implementations on Foreign Types

### `impl PyErrArguments for Error` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl<W: Send + Sync + Debug> PyErrArguments for IntoInnerError<W>` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for TryFromSliceError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for ParseIntError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for ParseFloatError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for TryFromIntError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for ParseBoolError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for IntoStringError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for NulError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for Utf8Error` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for FromUtf8Error` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for FromUtf16Error` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for DecodeUtf16Error` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

### `impl PyErrArguments for AddrParseError` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

Loading content...

## Implementors

### `impl<T> PyErrArguments for T where
T: IntoPy<PyObject> + Send + Sync,` [src]

#### `fn arguments(self, py: Python<'_>) -> PyObject` [src]

Loading content...