Public Member Functions | Public Attributes

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

We introduce a exception hierarchy here, which maps onto the exceptions as defined by the SAGA specification:

saga::exception
 saga::not_implemented
 saga::parameter_exception
  saga::incorrect_url
  saga::bad_parameter
 saga::state_exception
  saga::already_exists
  saga::does_not_exist
  saga::incorrect_state
  saga::timeout
 saga::security_exception
  saga::permission_denied
  saga::authorization_failed
  saga::authentication_failed
 saga::no_success

Definition at line 52 of file exception.hpp.


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:
obj The object associated with the exception.
message The message to be associated with the new exception.
Returns:
The newly created exception.

Creates the exception.

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

Creates the exception.

Parameters:
obj The object associated with the exception.
message The message to be associated with the new exception.
e Use this error code for the generated exception
Returns:
The newly created exception.

Creates the exception, without associating a SAGA object instance

Parameters:
message The 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:
message The 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: