unix_exception Class Reference
[Error Library]

#include <unixstl/error/exceptions.hpp>

Inheritance diagram for unix_exception:

os_exception project_exception missing_entry_point_exception readdir_sequence_exception synchronisation_exception tss_exception

List of all members.


Detailed Description

General exception class for UNIX operating system failures.

Types

typedef stlsoft::exception_string string_type
typedef stlsoft::os_exception parent_class_type
 The parent type.
typedef int error_code_type
typedef unix_exception class_type
 The type of the current instantiation.

Construction

 unix_exception (error_code_type err)
 unix_exception (char const *reason, error_code_type err)
virtual ~unix_exception () throw ()
 Destructor.
 unix_exception (string_type const &reason, error_code_type err)

Public Member Functions

Accessors
virtual char const * what () const throw ()
 Returns a human-readable string describing the exception condition.
error_code_type get_error_code () const
 The error code associated with the exception.
error_code_type get_errno () const
 [DEPRECATED] The error code associated with the exception
char const * strerror () const
 [DEPRECATED] String form of the contained error code

Member Typedef Documentation

typedef stlsoft:: os_exception parent_class_type

The type of the current instantiation.

Reimplemented from os_exception.

Reimplemented in missing_entry_point_exception, readdir_sequence_exception, synchronisation_exception, and tss_exception.


Constructor & Destructor Documentation

virtual ~unix_exception (  )  throw () [inline, virtual]

Destructor.

Note:
This does not do have any implementation, but is required to placate the Comeau and GCC compilers, which otherwise complain about mismatched exception specifications between this class and its parent


Member Function Documentation

virtual char const* what (  )  const throw () [inline, virtual]

Returns a human-readable string describing the exception condition.

Implements os_exception.

Reimplemented in tss_exception.

References UNIXSTL_ASSERT.

error_code_type get_error_code (  )  const [inline]

The error code associated with the exception.

error_code_type get_errno (  )  const [inline]

[DEPRECATED] The error code associated with the exception

Deprecated:
Use get_error_code() instead.

char const* strerror (  )  const [inline]

[DEPRECATED] String form of the contained error code

Deprecated:
This method will be removed in a future version.


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

Generated on Thu Jun 10 08:59:06 2010 for STLSoft by  doxygen 1.5.6