Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

URL: http://cxc.harvard.edu/chips/ahelp/clear_errors.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.6 ChIPS v1

clear_errors

Context: errors

Synopsis

Clears the ChIPS server error list.

Syntax

clear_errors()

Description

Generally, errors and warnings detected by the server are put into a buffer which the user may access. The buffer is cleared automatically at the start of most commands, so that the buffer only contains errors and warnings related to the executed command.

The clear_errors command is used to clear the ChIPS error buffer. This can be useful after calling get_errors, so that a subsequent get_errors call doesn't include the old errors.

This command is part of the advanced ChIPS module; refer to "ahelp chips" for information. To load the module:

from pychips.advanced import *

Example

chips> set_error_verbosity(3)
chips> get_errors()
chips> clear_errors()

Set the error verbosity level to 3 to print detailed information. Retrieve the error buffer, then clear the buffer.

Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

See Also

errors
get_error_count, get_error_types, get_error_verbosity, get_errors, set_error_verbosity

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2014. All rights reserved.