secureswitools/swisistools/source/interpretsislib/errors.h
branchRCL_3
changeset 24 5cc91383ab1e
parent 0 ba25891c3a9e
child 25 7333d7932ef7
equal deleted inserted replaced
23:cd189dac02f7 24:5cc91383ab1e
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    83         : std::runtime_error( aError ), iCode( aCode )
    83         : std::runtime_error( aError ), iCode( aCode )
    84         {
    84         {
    85         }
    85         }
    86 
    86 
    87 	inline InterpretSisError( const std::wstring& aError, ErrorCodes aCode )
    87 	inline InterpretSisError( const std::wstring& aError, ErrorCodes aCode )
    88         : std::runtime_error( Ucs2ToUtf8(aError) ), iCode( aCode )
    88         : std::runtime_error( wstring2string(aError) ), iCode( aCode )
    89         {
    89         {
    90         }
    90         }
    91 
    91 
    92 public:
    92 public:
    93 	ErrorCodes GetErrorCode() const { return iCode; }
    93 	ErrorCodes GetErrorCode() const { return iCode; }