plugin-barman-cloud/internal/cnpgi/common/errors.go
Leonardo Cecchi 127f94adaf chore: linter
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
2024-12-09 11:42:36 +01:00

15 lines
414 B
Go

package common
// WALNotFoundError is raised when a WAL file has not been found in the object store
type WALNotFoundError struct{}
// 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"
}