SAGA C++ API 1.6
saga::exception Class Reference

#include <exception.hpp>

Inheritance diagram for saga::exception:

List of all members.

Public Member Functions

 ~exception () throw ()
 Destroys the exception.
char const * what () const throw ()
 Brief description starts here.
char const * get_message () const throw ()
 Gets the message associated with the exception.
saga::error get_error () const throw ()
 Brief description starts here.
saga::object get_object () const throw ()
 Gets the SAGA object associated with exception.
std::vector< saga::exception >
const & 
get_all_exceptions () const throw ()
 return list of all exceptions encapsulated in this instance
std::vector< std::string > get_all_messages () const
 return list of all messages

Public Attributes

exception std::string & m
 Creates the exception.
exception std::string error e = NoSuccess)
exception std::vector
< saga::exception > & 
l
 Creates the exception, without associating a SAGA object instance.

Detailed Description


Constructor & Destructor Documentation

saga::exception::~exception ( ) throw () [inline]

Destroys the exception.

Definition at line 103 of file exception.hpp.


Member Function Documentation

char const * saga::exception::what ( ) const throw ()

Brief description starts here.

Definition at line 72 of file exception.cpp.

char const * saga::exception::get_message ( ) const throw ()

Gets the message associated with the exception.

Returns:
The error message.

Definition at line 81 of file exception.cpp.

saga::error saga::exception::get_error ( ) const throw ()

Brief description starts here.

Definition at line 89 of file exception.cpp.

saga::object saga::exception::get_object ( ) const throw ()

Gets the SAGA object associated with exception.

Returns:
The object associated with the exception.

Definition at line 98 of file exception.cpp.

std::vector< saga::exception > const & saga::exception::get_all_exceptions ( ) const throw ()

return list of all exceptions encapsulated in this instance

Definition at line 105 of file exception.cpp.

std::vector< std::string > saga::exception::get_all_messages ( ) const

return list of all messages

Note:
may throw std::bad_alloc, use with care

Definition at line 115 of file exception.cpp.


Member Data Documentation

Creates the exception.

Parameters:
objThe object associated with the exception.
messageThe message to be associated with the new exception.
Returns:
The newly created exception.

Creates the exception.

Parameters:
objThe object associated with the exception.
messageThe message to be associated with the new exception.
Returns:
The newly created exception.

Creates the exception.

Parameters:
objThe object associated with the exception.
messageThe message to be associated with the new exception.
eUse this error code for the generated exception
Returns:
The newly created exception.

Creates the exception, without associating a SAGA object instance

Parameters:
messageThe message to be associated with the new exception.
Returns:
The newly created exception.

Definition at line 92 of file exception.hpp.

exception std::string error saga::exception::e = NoSuccess)

Definition at line 92 of file exception.hpp.

Creates the exception, without associating a SAGA object instance.

Parameters:
messageThe message to be associated with the new exception.
Returns:
The newly created exception.

Definition at line 99 of file exception.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines