4
Global exception classes for IPython.core.
15
#-----------------------------------------------------------------------------
16
# Copyright (C) 2008-2009 The IPython Development Team
18
# Distributed under the terms of the BSD License. The full license is in
19
# the file COPYING, distributed as part of this software.
20
#-----------------------------------------------------------------------------
22
#-----------------------------------------------------------------------------
24
#-----------------------------------------------------------------------------
26
#-----------------------------------------------------------------------------
28
#-----------------------------------------------------------------------------
30
class IPythonCoreError(Exception):
34
class TryNext(IPythonCoreError):
35
"""Try next hook exception.
37
Raise this in your hook function to indicate that the next hook handler
38
should be used to handle the operation. If you pass arguments to the
39
constructor those arguments will be used by the next hook instead of the
43
def __init__(self, *args, **kwargs):
47
class UsageError(IPythonCoreError):
48
"""Error in magic function arguments, etc.
50
Something that probably won't warrant a full traceback, but should
51
nevertheless interrupt a macro / batch file.
b'\\ No newline at end of file'