williamr@4: /* williamr@4: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@4: * All rights reserved. williamr@4: * This component and the accompanying materials are made available williamr@4: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@4: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@4: * williamr@4: * Initial Contributors: williamr@4: * Nokia Corporation - initial contribution. williamr@4: * williamr@4: * Contributors: williamr@4: * williamr@4: * Description: williamr@4: * Filename: UCCS_ErrorCodes.h williamr@4: * williamr@4: */ williamr@4: williamr@4: williamr@4: #ifndef __UCCSCERRORCODES_H__ williamr@4: #define __UCCSCERRORCODES_H__ williamr@4: williamr@4: williamr@4: /*********************************************************************************** williamr@4: * williamr@4: * Types williamr@4: * williamr@4: **********************************************************************************/ williamr@4: typedef enum { williamr@4: UCCS_ERROR_NONE = 0, // This is returned from the new services for no error williamr@4: UCCS_OK = 100, williamr@4: williamr@4: // (2a) Returned by Invoke -- and then in turn by the execute command (IOutput::Error) williamr@4: UCCS_SERVICELISTFULL = -300, williamr@4: UCCS_NOSERVICEID, williamr@4: UCCS_INVALIDSERVICEID, williamr@4: UCCS_CANTSTARTSERVICE, williamr@4: UCCS_CANTSTOPSERVICE, williamr@4: UCCS_NOSERVICEHOST, williamr@4: UCCS_INVALIDSERVICEINDEX, williamr@4: UCCS_NO_MATCHING_GENERIC_SERVICE_FOUND, williamr@4: williamr@4: // (2b) Returned by ParseCommand -- and then in turn by the execute command (IOutput::Error) williamr@4: UCCS_PARSERFAILEDTOSTOREVALUE, williamr@4: williamr@4: // (2c) Returned by Execute Command (IOutput::Error) williamr@4: UCCS_UNKNOWNCOMMAND, williamr@4: UCCS_REPLAYCOMMAND, williamr@4: UCCS_NORESULT, williamr@4: UCCS_QUIT, williamr@4: UCCS_REQUIREDVALUEERROR, williamr@4: UCCS_REQUIREDVALUEINCORRECT, williamr@4: UCCS_REQUIREDNOTVALUEERROR, williamr@4: UCCS_REQUIREDNOTVALUEMATCH, williamr@4: UCCS_CHECKVALUEERROR, williamr@4: UCCS_CHECKVALUEINCORRECT, williamr@4: UCCS_CHECKNOTVALUEERROR, williamr@4: UCCS_CHECKNOTVALUEMATCH, williamr@4: williamr@4: // (2d) Returned from other classes that eventually get returned by execute command williamr@4: UCCS_FIELDNOTFOUND, williamr@4: UCCS_SYSTEMERROR, williamr@4: UCCS_RECORDFULL, williamr@4: UCCS_NOMORECOMMANDS, williamr@4: williamr@4: // (2e) Errors that are only used direct to IOutput williamr@4: UCCS_UNKNOWNCONTROLCOMMAND, williamr@4: UCCS_CLIENT_ERROR, williamr@4: williamr@4: // (3a) Errors returned to the control commands directly from CBatchEngine williamr@4: UCCS_ALREADYSTARTEDUSECASE, williamr@4: UCCS_NOUSECASERUNNING, williamr@4: UCCS_FAILEDTOCREATEEXECUTETHREAD, williamr@4: UCCS_COMMANDEXECUTIONNOTSTARTEDYET, williamr@4: UCCS_SCRIPTFINISHED, williamr@4: williamr@4: // (3b) Errors returned from other classes that eventually get returned to control commands williamr@4: UCCS_CANTOPENSCRIPTFILE, williamr@4: UCCS_CANTOPENOUTPUTFILE, williamr@4: UCCS_VARIABLEVALTOOLONG, williamr@4: UCCS_VARIABLEDOESNOTEXIST, williamr@4: UCCS_NOENVIRONMENT, williamr@4: williamr@4: // (4) End williamr@4: UCCS_LAST williamr@4: } TUCCSErrors; williamr@4: williamr@4: williamr@4: /*********************************************************************************** williamr@4: * williamr@4: * Definitions williamr@4: * williamr@4: **********************************************************************************/ williamr@4: #define GetUccsErrorStringI(x) GetUccsErrorString((TUCCSErrors)(x)) williamr@4: williamr@4: williamr@4: /*********************************************************************************** williamr@4: * williamr@4: * Prototypes williamr@4: * williamr@4: **********************************************************************************/ williamr@4: char *GetUccsErrorString( TUCCSErrors aErrorCode ); williamr@4: char *GetPenstdErrorString( int aErrorCode ); williamr@4: williamr@4: williamr@4: #endif __UCCSCERRORCODES_H__