javacommons/gcfbase/inc/pushexception.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PUSHEXCEPTION_H
       
    19 #define PUSHEXCEPTION_H
       
    20 
       
    21 #include <sstream>
       
    22 #include <exception>
       
    23 #include "javaosheaders.h"
       
    24 #include "exceptionbase.h"
       
    25 
       
    26 namespace java
       
    27 {
       
    28 namespace push
       
    29 {
       
    30 
       
    31 /**
       
    32  * Exception class used in the Push framework.
       
    33  */
       
    34 class OS_IMPORT PushException : public java::util::ExceptionBase
       
    35 {
       
    36 
       
    37 public:
       
    38     OS_IMPORT PushException(int aStatus,const std::string& aMessage, const std::string& aFile,
       
    39                             const std::string& aMethod, int aLine) throw();
       
    40 
       
    41     OS_IMPORT PushException(int aStatus,const std::wstring& aMessage, const std::string& aFile,
       
    42                             const std::string& aMethod, int aLine) throw();
       
    43 
       
    44     OS_IMPORT virtual ~PushException() throw();
       
    45 
       
    46     OS_IMPORT PushException(const PushException& x);
       
    47 
       
    48 private:
       
    49 
       
    50     //Not implemented.
       
    51     //PushException(const PushException&);
       
    52     PushException& operator= (const PushException&);
       
    53 };
       
    54 
       
    55 
       
    56 }//end namespace push
       
    57 }//end namespace java
       
    58 
       
    59 #endif // PUSHEXCEPTION_H