Sha256: 5441b80d1f0a68edf8a54a3cf7b0edfb25780847af619f25d858dee2e1fafb04
Contents?: true
Size: 339 Bytes
Versions: 40
Compression:
Stored size: 339 Bytes
Contents
module Bizside class ShowExceptions BIZSIDE_EXCEPTION_ENV_KEY = 'bizside.exception' def initialize(app) @app = app end def call(env) @app.call(env) rescue Exception => exception env[BIZSIDE_EXCEPTION_ENV_KEY] = exception # 発生した例外を保持 raise exception end end end
Version data entries
40 entries across 40 versions & 1 rubygems