dynamo-browse/internal/dynamo-browse/models/errors.go
Leon Mika 79692302af
Issue 23: Added progress indicators and cancellation (#34)
- Wrapped all table operations in a new foreground job context, which mediates foreground tasks.
- Added cancellation support and partial results for table read operations.
- Added the "mark" command, which can mark, unmark & toggle marked items
- Added support for alias arguments.
- Removed the "unmark" command, and replaced it as an alias to the "marked" command
- Fixed seg faults raised when there is no table shown in the result set.
2022-10-10 10:15:25 +11:00

24 lines
403 B
Go

package models
import (
"github.com/pkg/errors"
)
var ErrReadOnly = errors.New("in read-only mode")
type PartialResultsError struct {
err error
}
func NewPartialResultsError(err error) PartialResultsError {
return PartialResultsError{err: err}
}
func (pr PartialResultsError) Error() string {
return "partial results received"
}
func (pr PartialResultsError) Unwrap() error {
return pr.err
}