~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.cc

  • Committer: lbieber
  • Date: 2010-10-07 02:59:11 UTC
  • mfrom: (1818.1.2 build)
  • Revision ID: lbieber@orisndriz08-20101007025911-rz1n8q23hrwxks6v
Merge Brian - Fix a large number of warning issues on ICC. sql_string becomes 64bit
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
}