Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This repository is dedicated to professional strategies and best practices for e
- Practical examples and use cases for managing both synchronous and asynchronous errors
- Best practices for handling exceptions, creating custom errors, and propagating errors
- Modular and reusable code for seamless integration into your own projects
- **Complete documentation of Node.js standard error types** with practical examples in Portuguese

## Why Is Error Handling Important?

Expand All @@ -36,6 +37,29 @@ cd JS-Node-Error-Handling

Review the code samples and adapt them to your own projects as needed.

### Documentation

For comprehensive information about Node.js error types, check out our detailed documentation:

📖 **[Tipos de Erros Padrões do Node.js](docs/tipos-erros-nodejs.md)**

This documentation covers:
- All standard JavaScript/Node.js error types (Error, TypeError, RangeError, etc.)
- System error codes (ENOENT, EACCES, EADDRINUSE, etc.)
- Practical examples and use cases
- Best practices for error handling
- Written in Portuguese for Brazilian developers

### Running Examples

To see the error types in action, run the demonstration script:

```bash
node src/exemplos/tipos-erros-demo.js
```

This will show you live examples of each error type being thrown and caught.

## Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the examples or suggest new error handling patterns.
Expand Down
Loading