# Generic actions vs Splode errors

**URL:** <https://forum.elixirforum.com/t/generic-actions-vs-splode-errors/64034>\
**Category:** Questions\
**Tags:** error-handling, ash, splode\
**Created:** [June 7, 2024, 7:42am UTC](https://forum.elixirforum.com/t/generic-actions-vs-splode-errors/64034 "2024-06-07T07:42:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![spacebat](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/spacebat/32/25330_2.png) [@spacebat](https://forum.elixirforum.com/u/spacebat)\
**Post date:** [June 7, 2024, 2:39pm UTC](https://forum.elixirforum.com/t/generic-actions-vs-splode-errors/64034/3 "2024-06-07T14:39:08Z")

</div>

Not sure what you mean by aligning with ash error classes.

I thought that it already had an error class, eg:

```elixir
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
}

```

---

_[View the full topic](https://forum.elixirforum.com/t/generic-actions-vs-splode-errors/64034)._
