# Is there a api to check if base\_error happened?

**URL:** https://discourse.dry-rb.org/t/is-there-a-api-to-check-if-base-error-happened/1332
**Category:** dry-validation
**Created:** [September 8, 2021, 1:44pm UTC](https://discourse.dry-rb.org/t/is-there-a-api-to-check-if-base-error-happened/1332 "2021-09-08T13:44:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wuarmin](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/wuarmin/32/641_2.png) [@wuarmin](https://discourse.dry-rb.org/u/wuarmin)
#### Post date: [September 8, 2021, 1:44pm UTC](https://discourse.dry-rb.org/t/is-there-a-api-to-check-if-base-error-happened/1332/1 "2021-09-08T13:44:24Z")

</div>

Hey,

we have an api to check for rule\_errors `rule_error?(:my_key)`. I need an api to check for a `base_error?(:base_error_code)`.

Is there something like that? I haven’t been able to find anything yet.

Thanks  
Best regards!

---

<div class="post-metadata">

### Author: ![wuarmin](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/wuarmin/32/641_2.png) [@wuarmin](https://discourse.dry-rb.org/u/wuarmin)
#### Post date: [September 9, 2021, 5:55pm UTC](https://discourse.dry-rb.org/t/is-there-a-api-to-check-if-base-error-happened/1332/2 "2021-09-09T17:55:50Z")

</div>

I added a [PR](https://github.com/dry-rb/dry-validation/pull/690)

Thanks  
Best regards!
