/*
 * Instituto Superior de Engenharia do Porto
 *
 * Estruturas de Informação
 *
 * 2000/2001
 *
 * (C) Paulo Sousa
 *
 * ------------------------------------------
 *
 * Classe de Excepções
 *
 * Erro.c
 *
 */

#ifndef __ERRO_INC__
#define __ERRO_INC__


const int ERRO_GENERICO = 0;
const int POSICAO_INVALIDA = 1;
const int SEM_MEMORIA = 2;
const int PONTEIRO_NULO = 3;

class Erro
{
	int m_nCode;

public:
	Erro(int nCode)	{ m_nCode = nCode; }
	int codigo()	{ return m_nCode; }
};

#endif
