# UTIL_Exceptions.NotFoundException

**Class** · Group: `Utilities`

Learn it: [Utilities guide](/utilities-guide)

<div class="apex-member apex-class">

```apex
global inherited sharing class UTIL_Exceptions.NotFoundException
```

Thrown when a lookup for a specific record or resource yields no results. Commonly raised by selector findByIdOrThrow methods and resource-loading utilities to distinguish "not found" from other failure modes.

**Example**

```apex
Account account = new SEL_Account().findById(accountId);
if(account == null)
{
    throw new UTIL_Exceptions.NotFoundException('Account does not exist: ' + accountId);
}
```

</div>

---
