func WrapInternalError(
	intError, pubError error,
) error {
	if !IsInternalError(intError) {
		return &internalErrorWrapper{
			pubError: pubError,
			intError: intError,
		}
	} else {
		return errors.Annotate(intError, pubError.Error())
	}
}
// WrapInternalError wraps two errors: internal intError and external pubError.
// All standard operations on the resulting error will behave as if pubError
// was the original cause, thus hiding the internal error, which is only
// retrievable with the accessor functions below.
WrapInternalError wraps two errors: internal intError and external pubError.
All standard operations on the resulting error will behave as if pubError
was the original cause, thus hiding the internal error, which is only
retrievable with the accessor functions below.
// WrapInternalError wraps two errors : internal intError and external pubError . // All standard operations on the resulting error will behave as if pubError // was the original cause thus hiding the internal error which is only // retrievable with the accessor functions below .
func WrapInternalError(
	intError, pubError error,
) error {
	if !IsInternalError(intError) {
		return &internalErrorWrapper{
			pubError: pubError,
			intError: intError,
		}
	} else {
		return errors.Annotate(intError, pubError.Error())
	}
}
func WrapInternalError ( intError , pubError error , ) error { if ! IsInternalError ( intError ) { return & internalErrorWrapper { pubError : pubError , intError : intError , } } else { return errors . Annotate ( intError , pubError . Error ( ) ) } }
WrapInternalError wraps two errors: internal intError and external pubError.
WrapInternalError wraps two errors : internal intError and external pubError .