STK++ 0.9.13
STK::logic_error Class Reference

Logic errors represent problems in the internal logic of a program; in theory, these are preventable, and even detectable before the program runs (e.g., violations of class invariants). More...

#include <STK_Exceptions.h>

Inheritance diagram for STK::logic_error:
Inheritance graph

Public Member Functions

 logic_error (String const &__arg)
 Takes a character String describing the error.
 
virtual ~logic_error () throw ()
 
- Public Member Functions inherited from STK::Exception
 Exception () throw ()
 
 Exception (String const &__arg) throw ()
 Takes a character String describing the error.
 
virtual ~Exception () throw ()
 
virtual const String error () const throw ()
 Returns a C-style character string describing the general cause of the current error.
 

Detailed Description

Logic errors represent problems in the internal logic of a program; in theory, these are preventable, and even detectable before the program runs (e.g., violations of class invariants).

One of two subclasses of Exception.

Definition at line 72 of file STK_Exceptions.h.

Constructor & Destructor Documentation

◆ logic_error()

STK::logic_error::logic_error ( String const __arg)
inlineexplicit

Takes a character String describing the error.


Definition at line 149 of file STK_Exceptions.h.

149: Exception(__arg) {}

◆ ~logic_error()

STK::logic_error::~logic_error ( )
throw (
)
inlinevirtual

Definition at line 150 of file STK_Exceptions.h.

150{}

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