GRASS GIS logo

Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4. Go directly to the new manual page here

exceptions package

Module contents

Python’s standard exception class hierarchy.

Exceptions found here are defined both in the exceptions module and the built-in namespace. It is recommended that user-defined exceptions inherit from Exception. See the documentation for the exception inheritance hierarchy.

exception ArithmeticError

Bases: exceptions.StandardError

Base class for arithmetic errors.

exception AssertionError

Bases: exceptions.StandardError

Assertion failed.

exception AttributeError

Bases: exceptions.StandardError

Attribute not found.

exception BaseException

Bases: object

Common base class for all exceptions

args
message
exception BufferError

Bases: exceptions.StandardError

Buffer error.

exception BytesWarning

Bases: exceptions.Warning

Base class for warnings about bytes and buffer related problems, mostly related to conversion from str or comparing to str.

exception DeprecationWarning

Bases: exceptions.Warning

Base class for warnings about deprecated features.

exception EOFError

Bases: exceptions.StandardError

Read beyond end of file.

exception EnvironmentError

Bases: exceptions.StandardError

Base class for I/O related errors.

errno

exception errno

filename

exception filename

strerror

exception strerror

exception Exception

Bases: exceptions.BaseException

Common base class for all non-exit exceptions.

exception FloatingPointError

Bases: exceptions.ArithmeticError

Floating point operation failed.

exception FutureWarning

Bases: exceptions.Warning

Base class for warnings about constructs that will change semantically in the future.

exception GeneratorExit

Bases: exceptions.BaseException

Request that a generator exit.

exception IOError

Bases: exceptions.EnvironmentError

I/O operation failed.

exception ImportError

Bases: exceptions.StandardError

Import can’t find module, or can’t find name in module.

exception ImportWarning

Bases: exceptions.Warning

Base class for warnings about probable mistakes in module imports

exception IndentationError

Bases: exceptions.SyntaxError

Improper indentation.

exception IndexError

Bases: exceptions.LookupError

Sequence index out of range.

exception KeyError

Bases: exceptions.LookupError

Mapping key not found.

exception KeyboardInterrupt

Bases: exceptions.BaseException

Program interrupted by user.

exception LookupError

Bases: exceptions.StandardError

Base class for lookup errors.

exception MemoryError

Bases: exceptions.StandardError

Out of memory.

exception NameError

Bases: exceptions.StandardError

Name not found globally.

exception NotImplementedError

Bases: exceptions.RuntimeError

Method or function hasn’t been implemented yet.

exception OSError

Bases: exceptions.EnvironmentError

OS system call failed.

exception OverflowError

Bases: exceptions.ArithmeticError

Result too large to be represented.

exception PendingDeprecationWarning

Bases: exceptions.Warning

Base class for warnings about features which will be deprecated in the future.

exception ReferenceError

Bases: exceptions.StandardError

Weak ref proxy used after referent went away.

exception RuntimeError

Bases: exceptions.StandardError

Unspecified run-time error.

exception RuntimeWarning

Bases: exceptions.Warning

Base class for warnings about dubious runtime behavior.

exception StandardError

Bases: exceptions.Exception

Base class for all standard Python exceptions that do not represent interpreter exiting.

exception StopIteration

Bases: exceptions.Exception

Signal the end from iterator.next().

exception SyntaxError

Bases: exceptions.StandardError

Invalid syntax.

filename

exception filename

lineno

exception lineno

msg

exception msg

offset

exception offset

print_file_and_line

exception print_file_and_line

text

exception text

exception SyntaxWarning

Bases: exceptions.Warning

Base class for warnings about dubious syntax.

exception SystemError

Bases: exceptions.StandardError

Internal error in the Python interpreter.

Please report this to the Python maintainer, along with the traceback, the Python version, and the hardware/OS platform and version.

exception SystemExit

Bases: exceptions.BaseException

Request to exit from the interpreter.

code

exception code

exception TabError

Bases: exceptions.IndentationError

Improper mixture of spaces and tabs.

exception TypeError

Bases: exceptions.StandardError

Inappropriate argument type.

exception UnboundLocalError

Bases: exceptions.NameError

Local name referenced but not bound to a value.

exception UnicodeDecodeError

Bases: exceptions.UnicodeError

Unicode decoding error.

encoding

exception encoding

end

exception end

object

exception object

reason

exception reason

start

exception start

exception UnicodeEncodeError

Bases: exceptions.UnicodeError

Unicode encoding error.

encoding

exception encoding

end

exception end

object

exception object

reason

exception reason

start

exception start

exception UnicodeError

Bases: exceptions.ValueError

Unicode related error.

exception UnicodeTranslateError

Bases: exceptions.UnicodeError

Unicode translation error.

encoding

exception encoding

end

exception end

object

exception object

reason

exception reason

start

exception start

exception UnicodeWarning

Bases: exceptions.Warning

Base class for warnings about Unicode related problems, mostly related to conversion problems.

exception UserWarning

Bases: exceptions.Warning

Base class for warnings generated by user code.

exception ValueError

Bases: exceptions.StandardError

Inappropriate argument value (of correct type).

exception Warning

Bases: exceptions.Exception

Base class for warning categories.

exception ZeroDivisionError

Bases: exceptions.ArithmeticError

Second argument to a division or modulo operation was zero.

Table Of Contents

Previous topic

temporal package

Next topic

imaging package


Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4. Go directly to the new manual page here

Help Index | Topics Index | Keywords Index | Full Index

© 2003-2018 GRASS Development Team, GRASS GIS 7.2.4svn Reference Manual