Package osh :: Module error
[frames] | no frames]

Module error

source code

Controls handling of exceptions and stderr through the setting of handlers.

An exception_handler is a function with these arguments: An error_handler is a function with these arguments:

Classes
  Error
  ExceptionHandlerException
Functions
 
set_exception_handler(handler)
Use handler as the exception handler.
source code
 
exception_handler(exception, op, input, host=None) source code
 
set_stderr_handler(handler)
Use handler as the stderr handler.
source code
 
stderr_handler(line, op, input, host=None) source code