Changeset 191 for trunk/lib/SVN.h


Ignore:
Timestamp:
Sep 7, 2006, 1:14:45 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #81. Changed behaviour of the cleanup functionalities in the SVN class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVN.h

    r185 r191  
    180180    /**
    181181       @brief Free resources when svn API calls fail.
     182
     183       This function will write an error message to stdout, free \a
     184       err and \a pool resources. If \a err or \a pool are a NULL
     185       pointers the function will do nothing with these resources.
     186
     187       cleanup will throw a SVNException if \a message has
     188       length>0. The default bahaviour is to free resources and return
     189       normally.
     190
     191       @see SVNException
    182192    */
    183     void cleanup(svn_error_t *err,apr_pool_t *pool);
     193    void cleanup(svn_error_t *err, apr_pool_t *pool,
     194                 const std::string& message=std::string());
    184195
    185196    /**
    186197       @brief Free resources when failing to reach end of
    187198       constructor.
     199
     200       cleanup_failed_init will free all resource acquired in the
     201       constructor and throw an SVNException with \a message as the
     202       message.
     203
     204       @see SVNException
    188205    */
    189     void cleanup_failed_initialization(svn_error_t *err);
     206    void cleanup_failed_init(svn_error_t *err, const std::string& message);
    190207
    191208    static SVN* instance_;
Note: See TracChangeset for help on using the changeset viewer.