Trabalho Prático - PDS2
Carregando...
Procurando...
Nenhuma entrada encontrado
exceptions.hpp
1
#ifndef EXCEPTIONS_HPP
2
#define EXCEPTIONS_HPP
3
4
#include <stdexcept>
5
#include <string>
6
7
// Player Exceptions
8
9
class
InexistentPlayerException
:
public
std::invalid_argument {
10
public
:
11
InexistentPlayerException
();
12
};
13
14
class
PlayerNotInListException
:
public
std::invalid_argument {
15
public
:
16
PlayerNotInListException
();
17
};
18
19
class
PlayerAlreadyExistsException
:
public
std::invalid_argument {
20
public
:
21
PlayerAlreadyExistsException
();
22
};
23
24
// Input Exceptions
25
26
class
InvalidInputException
:
public
std::invalid_argument {
27
public
:
28
InvalidInputException
(
const
std::string &msg);
29
};
30
31
#endif
InexistentPlayerException
Exception class for handling cases where a player does not exist.
Definição
exceptions.hpp:9
InvalidInputException
Exception thrown when the input is invalid.
Definição
exceptions.hpp:26
PlayerAlreadyExistsException
Exception thrown when attempting to add a player that already exists.
Definição
exceptions.hpp:19
PlayerNotInListException
Exception class for handling cases where a player is not found in a list.
Definição
exceptions.hpp:14
include
utils
exceptions.hpp
Gerado por
1.10.0