plugin-barman-cloud/internal/cnpgi/common/errors.go
Armando Ruocco c27dc1e3d4 chore: review and go.mod tidy
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
2024-12-09 11:42:36 +01:00

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"
}