#NEWLINE# def oob_error( session , errmsg , * args , **kwargs ) : #NEWLINE# #INDENT# '\n    Error handling method. Error messages are relayed here.\n\n    Args:\n        session (Session): The session to receive the error\n        errmsg (str): The failure message\n\n    A function with this name is special and is also called by the\n    oobhandler when an error occurs already at the execution stage\n    (such as the oob function not being recognized or having the wrong\n    args etc). Call this from other oob functions to centralize error\n    management.\n\n    ' #NEWLINE# session . msg ( oob = ( 'error' , ( ( 'OOB ERROR: %s' % kwargs ) , ) ) )