javaextensions/pim/common/inc.s60/pimpanics.h
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  PIM panic numbers.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PIMPANICS_H
       
    20 #define PIMPANICS_H
       
    21 
       
    22 /** @file
       
    23  * This file contains panic numbers for the PIM implementation.
       
    24  */
       
    25 
       
    26 /**
       
    27  * PIM panic category. Used as the first parameter in User::Panic().
       
    28  */
       
    29 _LIT(KPIMPanicCategory, "JAVA-PIM");
       
    30 
       
    31 /**
       
    32  * PIM panic numbers and descriptions.
       
    33  */
       
    34 typedef enum
       
    35 {
       
    36     EPIMPanicGeneral = 0,
       
    37     /**< 0 - General PIM panic; More descriptive panics should be used
       
    38      instead of this. */
       
    39 
       
    40     EPIMPanicListCorrupt = 1,
       
    41     /**< 1 - A list has become corrupt but it was not noticed at the
       
    42      time it happened. */
       
    43 
       
    44     EPIMPanicEventItemsSearchType = 2,
       
    45     /**< 2 - Invalid Event item search type for Event enumeration. */
       
    46 
       
    47     EPIMPanicInvalidNativeChangeType = 3,
       
    48     /**< 3 - Invalid native-originated change type. */
       
    49 
       
    50     EPIMPanicInvalidItemID = 4,
       
    51     /**< 4 - Item ID is not KPIMNullItemID */
       
    52 
       
    53     EPIMPanicUnsupportedField = 5,
       
    54     /**< 5 - Item contains unsupported fields */
       
    55 
       
    56     EPIMPanicUnsupportedDateField = 6,
       
    57     /**< 6 - Item contains unsupported date fields */
       
    58 
       
    59     EPIMPanicUnsupportedStringField = 7,
       
    60     /**< 7 - Item contains unsupported string fields */
       
    61 
       
    62     EPIMPanicInvalidNativeChangeClass = 8,
       
    63     /**< 8 - Invalid change class for native-originated changes. */
       
    64 
       
    65     EPIMPanicUnexpectedNullExternalChangeList = 9,
       
    66     /**< 9 - List of external changes is NULL when non-NULL list was
       
    67      expected. */
       
    68 
       
    69     EPIMPanicExternalChangeNewExpected = 10,
       
    70     /**< 10 - EPIMExternalChangeNew type change expected while something
       
    71      else got. */
       
    72 
       
    73     EPIMPanicExternalChangeUpdatingNonExistentItem = 11,
       
    74     /**< 11 - An adapter indicated that an item should be updated but
       
    75      the item could not be found. */
       
    76 
       
    77     EPIMPanicArgumentNotZero = 12,
       
    78     /**< 12 - Localization Manager is asked for a subtyped data when the
       
    79      type does not support subtypes. */
       
    80 
       
    81     EPIMPanicNullArgument = 13,
       
    82     /**< 13 - NULL argument; generic panic for catching illegal NULL
       
    83      arguments. */
       
    84 
       
    85     EPIMPanicInvalidState = 14,
       
    86     /**< 14 - Invalid state. */
       
    87 
       
    88     EPIMPanicCommittedExists = 15,
       
    89     /**< 15 - An item, supposedly committed the first time after its
       
    90      creation, already exists in the list. */
       
    91 
       
    92     EPIMPanicInvalidInOutArg = 16,
       
    93     /**< 16 - Invalid argument for passing the results to the caller. */
       
    94 
       
    95     EPIMPanicBase64Error = 17,
       
    96     /**< 17 - Base64 encoding or decoding -related error. */
       
    97 
       
    98     EPIMPanicUnsupportedIntField = 18,
       
    99     /**< 18 - Item contains unsupported int fields. */
       
   100 
       
   101     EPIMPanicInvalidListType = 19,
       
   102     /**< 19 - Event localization data has invalid list type. */
       
   103 
       
   104     EPIMPanicInvalidFieldType = 20,
       
   105     /**< 20 - An invalid field type emerged. */
       
   106 
       
   107     EPIMPanicExternalChangeInit = 21,
       
   108     /**< 21 - An error in external change item initialization. */
       
   109 
       
   110     EPIMPanicTargetDesTooShort = 22,
       
   111     /**< 22 - Given target descriptor is too short. */
       
   112 
       
   113     EPIMPanicJniErrorArrayTooShort = 23,
       
   114     /**< 23 - Given JNI error in-out array is too short. */
       
   115 
       
   116     EPIMPanicJniInvalidLabelSpec = 24,
       
   117     /**< 24 - Given combination of field, attribute and array
       
   118      element is invalid. */
       
   119 
       
   120     EPIMPanicInvalidLabel = 25,
       
   121     /**< 25 - Given label is somehow errornous */
       
   122 } TPIMPanic;
       
   123 
       
   124 #endif // PIMPANICS_H
       
   125 // End of File