On this page
curses.error
Prev: curses.erasechar | Up: curses | Next: curses.filter
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org โ curses.error
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import error
Signature & Overview
curses.error(...)
curses.error class.
Methods & Attributes
error.add_note(self, note, /)โ Add a note to the exceptionerror.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import curses
assert issubclass(curses.error, Exception)
Gotchas
- Commonly raised when writing to the bottom-right cell of a window: Catch
curses.erroraround boundaryaddstr()calls.
REPL Inspect
from curses import error
help(error)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/erasechar Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/filter Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/curses/assume_default_colors Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/baudrate Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/beep Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/can_change_color Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/cbreak shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_content shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_pair shared tags: #curses, #stdlib