Skip to content
Snippets Groups Projects

WIP: Develop

Merged Malte Bauch requested to merge develop into master
14 files
+ 69
69
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -162,21 +162,25 @@ func (e ErrTypeNotSupported) Error() string {
// ErrCouldNotMarshall implements Error interface and is called if a
// database respone can not be parsed.
type ErrCouldNotMarshall struct {
StoreName string
Identifier any
Type any
Err error
}
func (e ErrCouldNotMarshall) Error() string {
return fmt.Sprintf("could not marshall %s", e.StoreName)
return fmt.Sprintf("could not marshall Identifier: %v of Type: %T, Internal error: %v", e.Identifier, e.Type, e.Err)
}
// ErrCouldNotUpdate implements the Error interface and is called if a
// stored item can not be updated.
type ErrCouldNotUpdate struct {
StoreName string
Identifier any
Type any
Err error
}
func (e ErrCouldNotUpdate) Error() string {
return fmt.Sprintf("could not update %s", e.StoreName)
return fmt.Sprintf("could not update Identifier: %v of Type: %T, Internal error: %v", e.Identifier, e.Type, e.Err)
}
// ErrCouldNotFind implements the Error interface and is called if a
@@ -193,21 +197,25 @@ func (e ErrCouldNotFind) Error() string {
// ErrCouldNotCreate implements the Error interface and is called if a
// stored item can not be found.
type ErrCouldNotCreate struct {
StoreName string
Identifier any
Type any
Err error
}
func (e ErrCouldNotCreate) Error() string {
return fmt.Sprintf("could not create %s", e.StoreName)
return fmt.Sprintf("could not create Identifier: %v of Type: %T, Internal error: %v", e.Identifier, e.Type, e.Err)
}
// ErrCouldNotDelete implements the Error interface and is called if a
// stored item can not be deleted.
type ErrCouldNotDelete struct {
StoreName string
Identifier any
Type any
Err error
}
func (e ErrCouldNotDelete) Error() string {
return fmt.Sprintf("could not delete %s", e.StoreName)
return fmt.Sprintf("could not delete Identifier: %v of Type: %T, Internal error: %v", e.Identifier, e.Type, e.Err)
}
// ErrNoNewChanges implements the Error interface and is called if a the
Loading