Stan  2.10.0
probability, sampling & optimization
Public Member Functions | Public Attributes | List of all members
stan::lang::located_exception< E > Struct Template Reference

Structure for a located exception for standard library exception types that have no what-based constructors. More...

#include <rethrow_located.hpp>

Inheritance diagram for stan::lang::located_exception< E >:

Public Member Functions

 located_exception () throw ()
 Construct a located exception with no what message. More...
 
 located_exception (const std::string &what, const std::string &orig_type) throw ()
 Construct a located exception with the specified what message and specified original type. More...
 
 ~located_exception () throw ()
 Destroy a located exception. More...
 
const char * what () const throw ()
 Return the character sequence describing the exception, including the original waht message and original type if constructed with such. More...
 

Public Attributes

std::string what_
 

Detailed Description

template<typename E>
struct stan::lang::located_exception< E >

Structure for a located exception for standard library exception types that have no what-based constructors.

Parameters
EType of original exception.

Definition at line 41 of file rethrow_located.hpp.

Constructor & Destructor Documentation

template<typename E>
stan::lang::located_exception< E >::located_exception ( )
throw (
)
inline

Construct a located exception with no what message.

Definition at line 47 of file rethrow_located.hpp.

template<typename E>
stan::lang::located_exception< E >::located_exception ( const std::string &  what,
const std::string &  orig_type 
)
throw (
)
inline

Construct a located exception with the specified what message and specified original type.

Parameters
[in]whatOriginal what message.
[in]orig_typeOriginal type.

Definition at line 56 of file rethrow_located.hpp.

template<typename E>
stan::lang::located_exception< E >::~located_exception ( )
throw (
)
inline

Destroy a located exception.

Definition at line 64 of file rethrow_located.hpp.

Member Function Documentation

template<typename E>
const char* stan::lang::located_exception< E >::what ( ) const
throw (
)
inline

Return the character sequence describing the exception, including the original waht message and original type if constructed with such.

Returns
Description of exception.

Definition at line 73 of file rethrow_located.hpp.

Member Data Documentation

template<typename E>
std::string stan::lang::located_exception< E >::what_

Definition at line 42 of file rethrow_located.hpp.


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

     [ Stan Home Page ] © 2011–2016, Stan Development Team.