---
title: "Comment by Dawid on \"Leaks Can Become Floods\" | Hashnode"
description: "U've made a small mistake in your \"leaky\" example: using Twig\\Error\\LoaderError while catching LoaderException ."
url: "https://hashnode.com/posts/leaks-can-become-floods/63ed01a73fa8ff4ff0097942/comment/67f53844a25041ccd3696e9f"
---

[Discussion](https://hashnode.com/posts/leaks-can-become-floods/63ed01a73fa8ff4ff0097942)

Comment [Leaks Can Become Floods](https://hashnode.com/posts/leaks-can-become-floods/63ed01a73fa8ff4ff0097942)

[Dawid](https://hashnode.com/@dawiddo)

[Apr 8, 2025](https://hashnode.com/posts/leaks-can-become-floods/63ed01a73fa8ff4ff0097942/comment/67f53844a25041ccd3696e9f)

U've made a small mistake in your "leaky" example: using `Twig\Error\LoaderError` while catching `LoaderException`.
