Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.SetErrno
Sets an error code.
Syntax
public void SetErrno(int i)Parameters
i
- Value of the error code.
Description
The
SetErrno
method sets an error code. To avoid setting error codes that may conflict with the existing Sites codes, make sure all error codes are set to:
(ftErrors.maxErrno
+yourErrno
)where
yourErrno
is a negative integer.Example
ics.ClearErrno(); boolean success = ics.myMethod() if (!success) { ics.SetErrno((ftErrors.maxErrno + -4)) };See Also
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.