Skip to content

Commit

Permalink
Add ErrorReporter unexpected method
Browse files Browse the repository at this point in the history
  • Loading branch information
bdewater committed Jul 17, 2024
1 parent 43b102b commit e330d47
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rbi/annotations/activesupport.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,15 @@ class ActiveSupport::ErrorReporter
).void
end
def report(error, handled: true, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end

# @version >= 7.2.0.beta1
sig do
params(
error: T.any(Exception, String),
severity: T.nilable(Symbol),
context: T::Hash[Symbol, T.untyped],
source: T.nilable(String),
).void
end
def unexpected(error, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end
end

0 comments on commit e330d47

Please sign in to comment.