### Navigation

- index
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »

# core.error

## Module: `core.error`

Inheritance diagram for `IPython.core.error`:

Global exception classes for IPython.core.

Authors:

- Brian Granger
- Fernando Perez

### Notes

## Classes

### `IPythonCoreError`

class `IPython.core.error.``IPythonCoreError`

  Bases: `exceptions.Exception`

  `__init__`()

    x.__init__(...) initializes x; see x.__class__.__doc__ for signature

  `args`
  `message`

### `TryNext`

class `IPython.core.error.``TryNext`(*args, **kwargs)

  Bases: `IPython.core.error.IPythonCoreError`

  Try next hook exception.

  Raise this in your hook function to indicate that the next hook handler should be used to handle the operation. If you pass arguments to the constructor those arguments will be used by the next hook instead of the original ones.

  `__init__`(*args, **kwargs)
  `args`
  `message`

### `UsageError`

class `IPython.core.error.``UsageError`

  Bases: `IPython.core.error.IPythonCoreError`

  Error in magic function arguments, etc.

  Something that probably won’t warrant a full traceback, but should nevertheless interrupt a macro / batch file.

  `__init__`()

    x.__init__(...) initializes x; see x.__class__.__doc__ for signature

  `args`
  `message`

### Navigation

- index
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »