First public contribution.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Functionality to panick the client when it sends invalid input,
16 * or the server when it detects an invalid state.
26 #include <scs/scsserver.h>
27 #include "scsserverconstants.h"
29 void PanicClient(const RMessagePtr2& aMessage, ScsImpl::TScsClientPanic aReason)
31 Panic the client which sent the supplied message with
32 category KScsClientPanicCat and the supplied reason.
34 @param aMessage Client message.
35 @param aReason Why the client will be panicked.
36 @see KScsClientPanicCat
39 aMessage.Panic(ScsImpl::KScsClientPanicCat, aReason);
43 void PanicServer(TServerPanic aReason)
45 Panic the current thread in the server process with category
46 KServerPanicCat and the supplied reason.
48 This function is only defined for debug builds.
50 @param aReason Panic reason.
54 User::Panic(KServerPanicCat, aReason);
56 #endif // #ifdef _DEBUG