mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:37:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
25
apps/api/internal/notification/channels/error.go
Normal file
25
apps/api/internal/notification/channels/error.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package channels
|
||||
|
||||
import "errors"
|
||||
|
||||
type CancelError struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
func (e *CancelError) Error() string {
|
||||
return e.Err.Error()
|
||||
}
|
||||
|
||||
func NewCancelError(err error) error {
|
||||
return &CancelError{
|
||||
Err: err,
|
||||
}
|
||||
}
|
||||
|
||||
func (e *CancelError) Is(target error) bool {
|
||||
return errors.As(target, &e)
|
||||
}
|
||||
|
||||
func (e *CancelError) Unwrap() error {
|
||||
return e.Err
|
||||
}
|
Reference in New Issue
Block a user