| package notification | |
| import ( | |
| "fmt" | |
| "github.com/openmeterio/openmeter/pkg/models" | |
| ) | |
| var _ error = (*NotFoundError)(nil) | |
| type NotFoundError struct { | |
| models.NamespacedID | |
| } | |
| func (e NotFoundError) Error() string { | |
| return fmt.Sprintf("resource with id %s not found in %s namespace", e.ID, e.Namespace) | |
| } | |
| type genericError struct { | |
| Err error | |
| } | |
| var _ error = (*UpdateAfterDeleteError)(nil) | |
| type UpdateAfterDeleteError genericError | |
| func (e UpdateAfterDeleteError) Error() string { | |
| return e.Err.Error() | |
| } | |
| func (e UpdateAfterDeleteError) Unwrap() error { | |
| return e.Err | |
| } | |