Changeset 1215 for trunk/lib/SVN.h


Ignore:
Timestamp:
Oct 10, 2010, 1:41:30 AM (12 years ago)
Author:
Peter Johansson
Message:

extending SVNException to also hold/take svn_error_t. refs #371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVN.h

    r978 r1215  
    5050  ///
    5151  struct SVNException : public std::runtime_error
    52   { inline SVNException(const std::string& msg) : runtime_error(msg) {} };
     52  {
     53    SVNException(const std::string& msg, svn_error_t* error=NULL);
     54
     55    virtual ~SVNException(void) throw();
     56    /**
     57       override base implementation
     58     */
     59    const char* what(void) const throw();
     60
     61    /**
     62       access svn_error_t
     63     */
     64    const svn_error_t* error(void) const;
     65  private:
     66    svn_error_t* error_;
     67    std::string msg_;
     68  };
    5369
    5470  /**
Note: See TracChangeset for help on using the changeset viewer.