Subversion
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes
apache::subversion::svnxx::error Class Reference

Encapsulate a stack of Subversion error codes and messages. More...

#include <svnxx/exception.hpp>

Inheritance diagram for apache::subversion::svnxx::error:
apache::subversion::svnxx::cancelled

Data Structures

class  message
 Error message description. More...
 

Public Member Functions

virtual const char * what () const noexcept override
 Returns the message associated with the top-level error that caused the exception. More...
 
virtual int code () const noexcept
 Returns the error code associated with the top-level error that caused the exception.
 
virtual const char * name () const noexcept
 Returns the symbolic name of the error code associated with the top-level error that caused the exception. More...
 
virtual std::vector< messagemessages () const
 Returns the complete list of error messages, including those from nested errors. More...
 
virtual std::vector< messagetraced_messages () const
 Like error::messages(), but includes debugging traceback. More...
 

Protected Member Functions

 error (detail::error_ptr err)
 
std::vector< messagecompile_messages (bool show_traces) const
 

Protected Attributes

const char *const m_message
 

Detailed Description

Encapsulate a stack of Subversion error codes and messages.

Definition at line 117 of file exception.hpp.

Constructor & Destructor Documentation

◆ ~error()

virtual apache::subversion::svnxx::error::~error ( )
inlinevirtual

Definition at line 121 of file exception.hpp.

Member Function Documentation

◆ messages()

virtual std::vector< message > apache::subversion::svnxx::error::messages ( ) const
inlinevirtual

Returns the complete list of error messages, including those from nested errors.

Definition at line 197 of file exception.hpp.

◆ name()

virtual const char * apache::subversion::svnxx::error::name ( ) const
virtualnoexcept

Returns the symbolic name of the error code associated with the top-level error that caused the exception.

Note
The returned value may be nullptr.

◆ traced_messages()

virtual std::vector< message > apache::subversion::svnxx::error::traced_messages ( ) const
inlinevirtual

Like error::messages(), but includes debugging traceback.

Note
Traceback is only available if the Subversion libraries were compiled with tracing enabled.

Definition at line 209 of file exception.hpp.

◆ what()

virtual const char * apache::subversion::svnxx::error::what ( ) const
overridevirtualnoexcept

Returns the message associated with the top-level error that caused the exception.

Note
the returned string is valid only as long as this error object is in scope.

Field Documentation

◆ m_message

const char* const apache::subversion::svnxx::error::m_message
protected

Definition at line 216 of file exception.hpp.


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