~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.cc

  • Committer: Monty Taylor
  • Date: 2010-10-06 18:22:02 UTC
  • mto: (1818.1.1 build) (1821.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1819.
  • Revision ID: mordred@inaugust.com-20101006182202-bzj2dpg6gnmbgghh
Fixed some more ICC warnings. How did I get started on this this morning?

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
}