Add instance types for Crystal 0.16.0
This commit is contained in:
parent
76b5add665
commit
12ec74e923
1 changed files with 2 additions and 3 deletions
|
@ -6,10 +6,9 @@ module Kemal::Exceptions
|
|||
end
|
||||
|
||||
class CustomException < Exception
|
||||
getter context
|
||||
|
||||
def initialize(@context)
|
||||
super "Rendered error with #{@context.response.status_code}"
|
||||
def initialize(context)
|
||||
super "Rendered error with #{context.response.status_code}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue