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 Aug 13, 2024
1 parent ea30c07 commit f1d96c5
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 @@ -493,4 +493,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 f1d96c5

Please sign in to comment.