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