~ubuntu-branches/ubuntu/trusty/aria2/trusty-proposed

« back to all changes in this revision

Viewing changes to src/OptionHandlerException.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-12-16 18:41:03 UTC
  • mfrom: (2.5.21 sid)
  • Revision ID: package-import@ubuntu.com-20131216184103-xzah3019zwut429g
Tags: 1.18.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
/* copyright --> */
35
35
#include "OptionHandlerException.h"
36
36
#include "fmt.h"
37
 
#include "prefs.h"
38
37
 
39
38
namespace aria2 {
40
39
 
45
44
 
46
45
OptionHandlerException::OptionHandlerException
47
46
(const char* file, int line,
48
 
 const Pref* pref)
 
47
 PrefPtr pref)
49
48
  : RecoverableException
50
49
    (file, line, fmt(MESSAGE, pref->k), error_code::OPTION_ERROR),
51
50
    pref_(pref)
53
52
 
54
53
OptionHandlerException::OptionHandlerException
55
54
(const char* file, int line,
56
 
 const Pref* pref,
 
55
 PrefPtr pref,
57
56
 const Exception& cause)
58
57
  : RecoverableException
59
58
    (file, line, fmt(MESSAGE, pref->k), error_code::OPTION_ERROR,