e32tools/e32lib/e32image/deflate/panic.cpp
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32tools\petran\Szip\panic.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "panic.h"
       
    19 #include "h_utl.h"
       
    20 #include <stdlib.h>
       
    21 
       
    22 char* HuffmanError[]=	{
       
    23 						"Huffman: Too many codes\n",
       
    24 						"Huffman: Invalid coding\n",
       
    25 						"Huffman: Buffer overflow\n",
       
    26 						"Huffman: Out Of Memory\n",
       
    27 						"Huffman: Corrupt File\n",
       
    28 						};
       
    29 
       
    30 const TInt KHuffmanErrorBase=700;
       
    31 
       
    32 void Panic(TPanic aPanic)
       
    33 	{
       
    34   	Print(ESevereError,HuffmanError[TInt(aPanic)]);
       
    35 	exit(KHuffmanErrorBase+TInt(aPanic));
       
    36 	}