thriftint

package
v0.9.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

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

func WrapBaseplateError(e error) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL