ruby-hyperloop / hyperloop-config

The project has moved to Hyperstack!! - internal gem used by other hyperloop gems to define config settings
https://hyperstack.org/
MIT License
3 stars 4 forks source link

provide standard mechanism to handle client caused server errors #18

Open catmando opened 6 years ago

catmando commented 6 years ago

such as access violations, method missing in AR expressions, etc.

module Hyperloop
  def self.on_error(err, message, description)
  end
end

applications can redefine to method. message will be standard set of codes so that the source of the problem can be identified.