00001
00007 #ifndef ERROS_ERROS_H
00008 #define ERROS_ERROS_H
00009
00018 namespace Erros {
00019
00030 class Erro {
00031 public:
00034 Erro(std::string const& mensagem);
00035
00037 virtual ~Erro();
00038
00041 virtual operator std::string () const;
00042
00043 private:
00045 std::string mensagem;
00046 };
00047
00054 class ErroAoCarregar : public Erro {
00055 public:
00058 ErroAoCarregar(std::string const& classe);
00059 };
00060
00067 class ErroAoGuardar : public Erro {
00068 public:
00071 ErroAoGuardar(std::string const& classe);
00072 };
00073 }
00074
00075 #include <Erros/erros_impl.H>
00076
00077 #endif // ERROS_ERROS_H