mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-13 22:23:11 +01:00
17 lines
491 B
Go
17 lines
491 B
Go
package common
|
|
|
|
// walNotFoundError is raised when a WAL file has not been found in the object store
|
|
type walNotFoundError struct{}
|
|
|
|
func newWALNotFoundError() *walNotFoundError { return &walNotFoundError{} }
|
|
|
|
// ShouldPrintStackTrace tells whether the sidecar log stream should contain the stack trace
|
|
func (e walNotFoundError) ShouldPrintStackTrace() bool {
|
|
return false
|
|
}
|
|
|
|
// Error implements the error interface
|
|
func (e walNotFoundError) Error() string {
|
|
return "WAL file not found"
|
|
}
|