summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/erreur/erreur.h
blob: 068d7512ac717787b45db0ab63659b77241755c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef erreur_h
#define erreur_h
// erreur.h
// buzz - Programme du robot Efrei Robotique I1-I2 2003
// Copyright (C) 2003 Nicolas Schodet

#include <exception>

class Erreur : public std::exception
{
  public:
    // Retourne une description de l'erreur.
    virtual const char *what () const;
};

class ErreurFatale : public Erreur
{
    const char *m_descr;
  public:
    ErreurFatale (const char *descr) { m_descr = descr; }
    virtual const char *what () const;
};


#endif // erreur_h