mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 12:57:34 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! added first event
This commit is contained in:
@@ -1,7 +1,29 @@
|
||||
package domain
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrNoAdminSpecified = errors.New("at least one admin must be specified")
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var ErrNoAdminSpecified = errors.New("at least one admin must be specified")
|
||||
|
||||
type wrongIDPTypeError struct {
|
||||
expected IDPType
|
||||
got string
|
||||
}
|
||||
|
||||
func NewWrongTypeError(expected IDPType, got string) error {
|
||||
return &wrongIDPTypeError{
|
||||
expected: expected,
|
||||
got: got,
|
||||
}
|
||||
}
|
||||
|
||||
func (e *wrongIDPTypeError) Error() string {
|
||||
return fmt.Sprintf("wrong idp type returned, expecgted: %v, got: %v", e.expected, e.got)
|
||||
}
|
||||
|
||||
func (e *wrongIDPTypeError) Is(target error) bool {
|
||||
_, ok := target.(*wrongIDPTypeError)
|
||||
return ok
|
||||
}
|
||||
|
Reference in New Issue
Block a user