Sha256: a13a0ec293b4591e1bbf212f005c952923055a24ab5174da0b69438f4d07213f

Contents?: true

Size: 1.12 KB

Versions: 16

Compression:

Stored size: 1.12 KB

Contents

// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package xerrors

// A Formatter formats error messages.
type Formatter interface {
	error

	// FormatError prints the receiver's first error and returns the next error in
	// the error chain, if any.
	FormatError(p Printer) (next error)
}

// A Printer formats error messages.
//
// The most common implementation of Printer is the one provided by package fmt
// during Printf (as of Go 1.13). Localization packages such as golang.org/x/text/message
// typically provide their own implementations.
type Printer interface {
	// Print appends args to the message output.
	Print(args ...interface{})

	// Printf writes a formatted string.
	Printf(format string, args ...interface{})

	// Detail reports whether error detail is requested.
	// After the first call to Detail, all text written to the Printer
	// is formatted as additional detail, or ignored when
	// detail has not been requested.
	// If Detail returns false, the caller can avoid printing the detail at all.
	Detail() bool
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.6 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.5 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.4 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.4.pre.debug ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.3.pre.debug ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.2 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.1 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.3.0 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.2.1 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.2.0 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.1.1 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.1.0 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.0.2 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.0.1 ext/vendor/golang.org/x/xerrors/format.go
ruby_snowflake_client-1.0.0 ext/vendor/golang.org/x/xerrors/format.go