From b25a8db2a601bb5b4c4d7b463fd4d1687b913535 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 23 Feb 2009 01:21:19 +0000 Subject: [PATCH] added more error codes. consolidated exception classes into one. moved over more places to use error_code instead of strings. fixed proper error handling for torrent_info --- docs/manual.html | 180 +++++++++++++++++---- docs/manual.rst | 152 ++++++++++-------- include/libtorrent/aux_/session_impl.hpp | 2 +- include/libtorrent/entry.hpp | 25 ++- include/libtorrent/error_code.hpp | 31 +++- include/libtorrent/escape_string.hpp | 3 +- include/libtorrent/session.hpp | 1 + include/libtorrent/torrent.hpp | 11 +- include/libtorrent/torrent_handle.hpp | 17 +- include/libtorrent/torrent_info.hpp | 19 ++- src/create_torrent.cpp | 10 +- src/error_code.cpp | 9 ++ src/escape_string.cpp | 30 ++-- src/magnet_uri.cpp | 10 +- src/peer_connection.cpp | 6 +- src/session.cpp | 18 ++- src/session_impl.cpp | 20 +-- src/torrent.cpp | 37 ++--- src/torrent_handle.cpp | 12 +- src/torrent_info.cpp | 195 +++++++++++++++-------- 20 files changed, 518 insertions(+), 270 deletions(-) diff --git a/docs/manual.html b/docs/manual.html index febcde363..32fd071c8 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -220,44 +220,46 @@
  • invalid_torrent_file
  • -
  • storage_interface