an std::runtime_error with thrower location info More...

#include <TextException.h>

Inheritance diagram for TextException:
Collaboration diagram for TextException:

Public Member Functions

 TextException (const char *message, const SourceLocation &location)
 
 TextException (SBuf message, const SourceLocation &location)
 
 TextException (const TextException &)=default
 
 TextException (TextException &&)=default
 
TextExceptionoperator= (const TextException &)=default
 
virtual ~TextException () override throw ()
 
virtual const char * what () const override throw ()
 
SourceLocationId id () const
 same-location exceptions have the same ID More...
 
std::ostream & print (std::ostream &) const
 dumps the exception text into the stream More...
 

Public Attributes

SourceLocation where
 code location related to the exception; usually the thrower location More...
 

Detailed Description

Definition at line 19 of file TextException.h.

Constructor & Destructor Documentation

◆ TextException() [1/4]

TextException::TextException ( const char *  message,
const SourceLocation location 
)
inline

Definition at line 23 of file TextException.h.

References operator=(), what(), and ~TextException().

◆ TextException() [2/4]

TextException::TextException ( SBuf  message,
const SourceLocation location 
)

Definition at line 26 of file TextException.cc.

◆ TextException() [3/4]

TextException::TextException ( const TextException )
default

◆ TextException() [4/4]

TextException::TextException ( TextException &&  )
default

◆ ~TextException()

TextException::~TextException ( )
throw (
)
overridevirtual

Definition at line 30 of file TextException.cc.

References WhatStrings_.

Referenced by TextException().

Member Function Documentation

◆ id()

SourceLocationId TextException::id ( ) const
inline

Definition at line 39 of file TextException.h.

References SourceLocation::id(), print(), and where.

Referenced by Adaptation::Icap::ModXact::callException().

◆ operator=()

TextException& TextException::operator= ( const TextException )
default

Referenced by TextException().

◆ print()

std::ostream & TextException::print ( std::ostream &  os) const

Definition at line 37 of file TextException.cc.

References where.

Referenced by id(), and what().

◆ what()

const char * TextException::what ( ) const
throw (
)
overridevirtual

Definition at line 46 of file TextException.cc.

References print(), and WhatStrings_.

Referenced by IpcIoFile::push(), and TextException().

Member Data Documentation

◆ where

SourceLocation TextException::where

Definition at line 45 of file TextException.h.

Referenced by id(), and print().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors