secureswitools/swisistools/source/interpretsislib/errors.h
changeset 60 245df5276b97
parent 25 98b66e4fb0be
equal deleted inserted replaced
53:ae54820ef82c 60:245df5276b97
     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".
    86         : std::runtime_error( aError ), iCode( aCode )
    86         : std::runtime_error( aError ), iCode( aCode )
    87         {
    87         {
    88         }
    88         }
    89 
    89 
    90 	inline InterpretSisError( const std::wstring& aError, ErrorCodes aCode )
    90 	inline InterpretSisError( const std::wstring& aError, ErrorCodes aCode )
    91         : std::runtime_error( Ucs2ToUtf8(aError) ), iCode( aCode )
    91         : std::runtime_error( wstring2string(aError) ), iCode( aCode )
    92         {
    92         {
    93         }
    93         }
    94 
    94 
    95 public:
    95 public:
    96 	ErrorCodes GetErrorCode() const { return iCode; }
    96 	ErrorCodes GetErrorCode() const { return iCode; }