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

Base class for exceptions about pieces. More...

#include <exceptions.hpp>

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

Public Member Functions

 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

Base class for exceptions about pieces.

Constructor & Destructor Documentation

◆ bad_piece()

tt::ex::bad_piece::bad_piece ( const Piece p,
const std::string what_arg = "Invalid piece" 
)
inline
Parameters
pPiece object report is based on
what_argmessage string

Member Function Documentation

◆ piece()

const Piece * tt::ex::bad_piece::piece ( ) const
inline

Get the reported tt::Piece object.

Returns
Piece object

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