---
title: "Discussion on \"Day 32 - Custom Errors\" | Hashnode"
description: "Discussion on \"Day 32 - Custom Errors\". Raising Custom errors\nIn Python, we can raise custom errors by using the raise keyword.\nsalary = int(input(\"Enter salary amount: \"))\nif not 2000 < salary < 5000:\n    raise ValueError(\"Not a valid salary\")\n\nIn the previous tutorial, we learned about d..."
url: "https://hashnode.com/posts/day-32-custom-errors/6429024f8366c602d9dfdad4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Day 32 - Custom Errors](https://viveky.hashnode.dev/day-32-custom-errors?utm_source=hashnode&utm_medium=feed)

Raising Custom errors In Python, we can raise custom errors by using the raise keyword. salary = int(input("Enter salary amount: ")) if not 2000 < salary < 5000: raise ValueError("Not a valid salary") In the previous tutorial, we learned about d...

Apr 2, 2023 · 1 min read · viveky.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#python3](https://hashnode.com/tag/python3)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Vivek Yadav](https://hashnode.com/@vivek166)

@vivek166 · Noida, India

  
[View profile](https://hashnode.com/@vivek166)

Web Developer

I'm a Frontend Developer, passionate about learning about new Web Technologies.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
