Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

ICS.ClearErrno

Clears the current error state.

Syntax

Description

The ClearErrno method clears the current error state, setting the value of error state to 0. You should call this method immediately before invoking a method that may alter the errno.

Note that the error state is more than just the value of the variable errno, so ClearErrno should be used to properly reset the error state. Using SetVar("errno",0) is discouraged, since it does not completely reset the error state.

Example

The following code clears the value of errno prior to issuing a new call:

See Also

GetErrno , SetErrno

 

  Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.