~ubuntu-branches/debian/stretch/libtorrent/stretch

« back to all changes in this revision

Viewing changes to src/torrent/exceptions.h

  • Committer: Package Import Robot
  • Author(s): Jose Luis Rivas, Jonathan McDowell, Jose Luis Rivas
  • Date: 2015-09-30 04:03:36 UTC
  • mfrom: (1.3.7) (7.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20150930040336-3u97dzmsdtd3jx03
Tags: 0.13.6-1
[ Jonathan McDowell ]
* Remove Benoît Knecht from Uploaders. Closes: #779430.

[ Jose Luis Rivas ]
* New upstream version.
* debian/watch now uses github.
* Bumped package to match the soname change. Closes: #797866.
  (urgency=medium since this is an RC-bug, gcc5 transition)
* Removed patches, they were already applied upstream.
* Updated homepage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
  virtual ~internal_error() throw() {}
66
66
 
67
67
  virtual const char* what() const throw() { return m_msg.c_str(); }
 
68
  const std::string&  backtrace() const throw() { return m_backtrace; }
68
69
 
69
70
private:
70
71
  // Use this function for breaking on throws.
71
72
  void initialize(const std::string& msg);
72
73
 
73
74
  std::string m_msg;
 
75
  std::string m_backtrace;
74
76
};
75
77
 
76
78
// For some reason we couldn't talk with a protocol/tracker, migth be a
102
104
 
103
105
  virtual const char* what() const throw();
104
106
 
 
107
  int get_errno() const { return m_errno; }
 
108
 
 
109
private:
 
110
  int m_errno;
 
111
};
 
112
 
 
113
class LIBTORRENT_EXPORT address_info_error : public network_error {
 
114
public:
 
115
  address_info_error(int err) : m_errno(err) {}
 
116
  virtual ~address_info_error() throw() {}
 
117
 
 
118
  virtual const char* what() const throw();
 
119
 
 
120
  int get_errno() const { return m_errno; }
 
121
 
105
122
private:
106
123
  int m_errno;
107
124
};