[SERVER-12770] return location code when converting Error to string Created: 18/Feb/14 Updated: 11/Jul/16 Resolved: 26/Feb/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 2.6.0-rc1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Eric Milkie | Assignee: | Andy Schwerin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
This should remove the need to add every uassert code to error_codes.err just to avoid getting UnknownError when converting exceptions to Status objects. |
| Comments |
| Comment by Githook User [ 26/Feb/14 ] |
|
Author: {u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}Message: |
| Comment by Andy Schwerin [ 18/Feb/14 ] |
|
Proposal: Error code values, x that are not in the ErrorCodes::Error enumeration will convert to strings of the form "Location" + toDecimalString( x ). Further, ErrorCodes::fromInt will be equivalent to static_cast<ErrorCodes::Error>. |