tartan 1.2.2.1
Chess API
Loading...
Searching...
No Matches
tt::ex::null_piece Class Reference

Thrown when Piece pointer is nullptr when it should not be. More...

#include <exceptions.hpp>

Inheritance diagram for tt::ex::null_piece:
[legend]
Collaboration diagram for tt::ex::null_piece:
[legend]

Public Member Functions

 null_piece (const std::string what_arg="Piece does not exists")
 
const Piecepiece () const =delete
 
- Public Member Functions inherited from tt::ex::bad_piece
 bad_piece (const Piece *p, const std::string &what_arg="Invalid piece")
 
const Piecepiece () const
 Get the reported tt::Piece object.
 
- Public Member Functions inherited from std::logic_error
logic_error (T... args)
 
what (T... args)
 
- Public Member Functions inherited from std::exception
what (T... args)
 
~exception (T... args)
 
operator= (T... args)
 
exception (T... args)
 

Detailed Description

Thrown when Piece pointer is nullptr when it should not be.

Constructor & Destructor Documentation

◆ null_piece()

tt::ex::null_piece::null_piece ( const std::string  what_arg = "Piece does not exists")
inline
Parameters
what_argmessage string

The documentation for this class was generated from the following file: