21 lines
506 B
Go
21 lines
506 B
Go
package merrors
|
|
|
|
import "strings"
|
|
|
|
const ReasonAMLSourceIdempotencyConflict = "AML_SOURCE_IDEMPOTENCY_CONFLICT"
|
|
|
|
var ErrAMLSourceIdempotencyConflict = Define("aml.source_idempotency_conflict")
|
|
|
|
func AMLSourceIdempotencyConflict(msg string) error {
|
|
msg = strings.TrimSpace(msg)
|
|
if msg == "" {
|
|
msg = ErrAMLSourceIdempotencyConflict.Error()
|
|
}
|
|
return classifiedError{
|
|
base: ErrDataConflict,
|
|
code: ErrAMLSourceIdempotencyConflict,
|
|
msg: msg,
|
|
reason: ReasonAMLSourceIdempotencyConflict,
|
|
}
|
|
}
|