Not sure what you mean by aligning with ash error classes.
I thought that it already had an error class, eg:
Accounts.Errors.to_class(err)
%Accounts.Errors.Custom{
errors: [
%Accounts.Errors.CustomError{
thing: "city hall",
message: "gone to pot",
splode: Accounts.Errors,
bread_crumbs: [],
vars: [],
path: [],
stacktrace: #Splode.Stacktrace<>,
class: :custom
}
],
splode: Accounts.Errors,
bread_crumbs: [],
vars: [],
path: [],
stacktrace: #Splode.Stacktrace<>,
class: :custom
}


















