Documentation ¶
Overview ¶
Package thriftint provides internal thrift related helpers to avoid circular dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapBaseplateError ¶
WrapBaseplateError wraps e to an error with more meaningful error message if e is baseplate.Error. Otherwise it returns e as-is.
NOTE: This in general should only be used in clients. If you wrap baseplate.Error returned in server code, it could cause the error no longer being recognized as an error defined in thrift IDL by the thrift server, and the client would get a generic TApplicationException instead. If you only need this for logging, it's auto applied on zapcore initialized from log package automatically, and you don't need to do anything special about it.
Types ¶
This section is empty.