Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
  • Loading branch information
adakri committed Nov 12, 2020
1 parent 887ef54 commit 6f98d10
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Erreur.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef ERREUR_H
#define ERREUR_H


enum Erreurs
{
BAD_ALLOC,
BAD_INDEX,
BAD_SIZE,
NON_SYM,
NON_DEF
};

class erreur
{
private:
Erreurs e_;
public:
erreur (Erreurs e) : e_(e) {}
Erreurs operator()() {return e_;}
};
#endif

0 comments on commit 6f98d10

Please sign in to comment.