~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.cc

  • Committer: lbieber
  • Date: 2010-10-07 00:53:56 UTC
  • mfrom: (1816.2.5 intel-warnings-win)
  • mto: This revision was merged to the branch mainline in revision 1819.
  • Revision ID: lbieber@orisndriz08-20101007005356-uy0csu79ecyxdkbj
Merge Monty - clean up ICC warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
class ErrorStringNotFound: public std::exception
40
40
{
41
41
public:
42
 
  ErrorStringNotFound(uint32_t code)
43
 
    : error_num_(code)
 
42
  ErrorStringNotFound()
44
43
  {}
45
 
  uint32_t error_num() const
46
 
  {
47
 
    return error_num_;
48
 
  }
49
 
private:
50
 
  uint32_t error_num_;
51
44
};
52
45
 
53
46
/*
202
195
  ErrorMessageMap::const_iterator pos= mapping_.find(error_num);
203
196
  if (pos == mapping_.end())
204
197
  {
205
 
    throw ErrorStringNotFound(error_num);
 
198
    throw ErrorStringNotFound();
206
199
  }
207
200
  return pos->second;
208
201
}