---
title: "Discussion on \"Error Handling: The \"Safety Net Contract\"\" | Hashnode"
description: "Discussion on \"Error Handling: The \"Safety Net Contract\"\". In JavaScript, errors are \"invisible.\" You don't know if a function will return null, undefined, or throw a hidden exception until your code crashes in production. \nIn Rust, Error Handling is an explicit Safety Net Contract. There is no null and no t..."
url: "https://hashnode.com/posts/error-handling-the-safety-net-contract/69d4dffc17f859d321cffb73"
---

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

Discussion

# [Error Handling: The "Safety Net Contract"](https://yafi.hashnode.dev/error-handling-the-safety-net-contract?utm_source=hashnode&utm_medium=feed)

In JavaScript, errors are "invisible." You don't know if a function will return null, undefined, or throw a hidden exception until your code crashes in production. In Rust, Error Handling is an explicit Safety Net Contract. There is no null and no t...

Apr 7 · 2 min read · yafi.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#error-handling](https://hashnode.com/tag/error-handling)
-   [#option](https://hashnode.com/tag/option)
-   [#result](https://hashnode.com/tag/result)
-   [#panic](https://hashnode.com/tag/panic)

## Written by

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim)

@yafialhakim · Jakarta, Indonesia

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

Frontend Engineer @MySkill.id

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
