Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 529 Bytes

typesOfErrors.md

File metadata and controls

24 lines (17 loc) · 529 Bytes

Types of Errors

  1. Operational Error
  2. Programmatical Error
  3. Unhandled Rejection (Asynchronous Code)
  4. Uncaught Exception (synchronous Code)

Operational Error

Errors the we can predict will happen in future

  • Invalid user inputs
  • Failed to run server
  • Failed to connect database
  • Invalid auth token

Programmatical Error

Error that developers produce when developing

  • using undefined variables.
  • usign properties that do not exist
  • passing number instead of string
  • using req.params instead of req.query