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
9class InexistentPlayerException : public std::invalid_argument {
10 public:
12};
13
14class PlayerNotInListException : public std::invalid_argument {
15 public:
17};
18
19class PlayerAlreadyExistsException : public std::invalid_argument {
20 public:
22};
23
24// Input Exceptions
25
26class InvalidInputException : public std::invalid_argument {
27 public:
28 InvalidInputException(const std::string &msg);
29};
30
31#endif
Exception class for handling cases where a player does not exist.
Definição exceptions.hpp:9
Exception thrown when the input is invalid.
Definição exceptions.hpp:26
Exception thrown when attempting to add a player that already exists.
Definição exceptions.hpp:19
Exception class for handling cases where a player is not found in a list.
Definição exceptions.hpp:14