tartan  1.2.1.0
tt::ex::bad_piece_spec Class Reference

Thrown when Board::piece() can not recognize Piece specification. More...

#include <exceptions.hpp>

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

Public Member Functions

 bad_piece_spec (const std::string &spec, const std::string what_arg="Invalid piece specification")
 
const std::stringspec () const
 Get the malformed spec string. More...
 
- 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. More...
 
- 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 Board::piece() can not recognize Piece specification.

Constructor & Destructor Documentation

◆ bad_piece_spec()

tt::ex::bad_piece_spec::bad_piece_spec ( const std::string spec,
const std::string  what_arg = "Invalid piece specification" 
)
inline
Parameters
specthe spec that is malformed
what_argmessage string

Member Function Documentation

◆ spec()

const std::string& tt::ex::bad_piece_spec::spec ( ) const
inline

Get the malformed spec string.

Returns
the bad spec string

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