Sha256: a4bced336fa485e458f4f46eadaba9ae5804e1e449629026ea4dd1ac579fcc18
Contents?: true
Size: 980 Bytes
Versions: 2
Compression:
Stored size: 980 Bytes
Contents
# encoding: utf-8 class Demo module Web module Renderer class SanitizationError def self.call(response) "Don't mess with the input params: #{response.input.data.inspect}" end end class AuthenticationError def self.call(response) "Failed to authenticate: #{response.input.data.inspect}" end end class AuthorizationError def self.call(response) "Failed to authorize: #{response.input.data.inspect}" end end class ValidationError def self.call(response) "Failed to validate: #{response.input.data.inspect}" end end class ApplicationError def self.call(response) "Failed to process: #{response.output.inspect}" end end class InternalError def self.call(response) "Something bad happened: #{response.output.inspect}" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.11 | spec/demo/web/renderer.rb |
substation-0.0.10 | spec/demo/web/renderer.rb |