ire4ever1190 / mike

The new and improved mikero web framework
35 stars 1 forks source link

Error handlers #4

Closed ire4ever1190 closed 2 years ago

ire4ever1190 commented 2 years ago

Adds ability to register error handlers

KeyError -> thrown:
  ctx.send "Overridden response"

the -> was used so that it fit with the rest of the library, also allows the options to be expanded in the future

Also makes more things throw exceptions instead of returning a manual response or just straight up crashing the server