Skip to content

Commit

Permalink
Merge pull request #264 from bdewater/as/unexpected
Browse files Browse the repository at this point in the history
Add ErrorReporter unexpected method
  • Loading branch information
egiurleo authored Aug 16, 2024
2 parents ea30c07 + f1d96c5 commit a18cf20
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 a18cf20

Please sign in to comment.