mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-10 07:21:04 +00:00
feat(eventstore): sdk (#39)
* sdk * fix(sdk): return correct error type * AppendEventError instead of Aggregater error * fix(tests): tests * fix(tests): wantErr to is error func
This commit is contained in:
@@ -17,11 +17,11 @@ type AlreadyExistsError struct {
|
||||
}
|
||||
|
||||
func ThrowAlreadyExists(parent error, id, message string) error {
|
||||
return &AlreadyExistsError{createCaosError(parent, id, message)}
|
||||
return &AlreadyExistsError{CreateCaosError(parent, id, message)}
|
||||
}
|
||||
|
||||
func ThrowAlreadyExistsf(parent error, id, format string, a ...interface{}) error {
|
||||
return &AlreadyExistsError{createCaosError(parent, id, fmt.Sprintf(format, a...))}
|
||||
return &AlreadyExistsError{CreateCaosError(parent, id, fmt.Sprintf(format, a...))}
|
||||
}
|
||||
|
||||
func (err *AlreadyExistsError) IsAlreadyExists() {}
|
||||
|
Reference in New Issue
Block a user