module Kemal::Exceptions
  class RouteNotFound < Exception
    def initialize(context)
      super "Requested path: '#{context.request.override_method as String}:#{context.request.path}' was not found."
    end
  end

  class CustomException < Exception
    getter context

    def initialize(@context)
      super "Rendered error with #{@context.response.status_code}"
    end
  end
end

module Kemal::Exceptions
  class RouteNotFound < Exception
    def initialize(context)
      super "Requested path: '#{context.request.override_method as String}:#{context.request.path}' was not found."
    end
  end

  class CustomException < Exception

    def initialize(context)
      super "Rendered error with #{context.response.status_code}"
    end
  end
end

Add instance types for Crystal 0.16.0
Add instance types for Crystal 0.16.0
