7b666d187a
terror: add helper checker to simplify error check in test.
2015-11-19 10:24:49 +08:00
48f6bc4b0d
*: add UnknownSystemVar
2015-11-10 21:31:40 +08:00
3684664f5d
*: use terror instead of error
2015-11-10 20:16:22 +08:00
f1a4be756b
terror: improve test.
2015-11-06 19:26:03 +08:00
807b897939
terror: remove cause functionality.
...
Because that make equal check invalid.
2015-11-06 18:33:11 +08:00
de8f85e3f5
terror: fix wrong import
2015-11-06 18:07:21 +08:00
d184f69349
terror: implement juju/errors interfaces to support printing error stack.
...
Also make base error immutable.
2015-11-06 18:04:29 +08:00
29905679fa
Merge remote-tracking branch 'origin/master' into shenli/issue-515.
...
Use terror to check table not exists error.
Conflicts:
bootstrap.go
2015-11-06 10:34:00 +08:00
38726769b4
terror: new implementation.
2015-11-05 19:15:49 +08:00
c6c74b6d6b
terror: address comment and add update class String method.
2015-11-05 12:26:59 +08:00
83ac08b9bf
terror: address comment.
2015-11-05 12:21:58 +08:00
0943aa598e
terror: unify util/errors and util/errors2 in terror.
2015-11-05 12:05:16 +08:00
0fab139acb
terror: address comment.
2015-11-04 19:01:31 +08:00
c9ca685e19
terror: address comment.
2015-11-04 09:59:28 +08:00
2957a4a9e1
terror: create a new error type that has class and code for comparison.
...
The current error check can only handle errors that has exactly the same message, when error message is not constant.
For example parsing error has the message describe the context of the error.
With this error type, we can includes context information in the message and still able to check the error type.
2015-11-03 18:26:04 +08:00