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 Content Server 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 > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.