IPython Documentation

Table Of Contents

Previous topic

core.displaypub

Next topic

core.excolors

This Page

core.error

Module: core.error

Inheritance diagram for IPython.core.error:

Global exception classes for IPython.core.

Authors:

  • Brian Granger
  • Fernando Perez
  • Min Ragan-Kelley

Notes

Classes

IPythonCoreError

class IPython.core.error.IPythonCoreError

Bases: exceptions.Exception

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

args
message

StdinNotImplementedError

class IPython.core.error.StdinNotImplementedError

Bases: IPython.core.error.IPythonCoreError, exceptions.NotImplementedError

raw_input was requested in a context where it is not supported

For use in IPython kernels, where only some frontends may support stdin requests.

__init__()

x.__init__(...) initializes x; see help(type(x)) 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 help(type(x)) for signature

args
message