vendor/ruby-signature/stdlib/builtin/exception.rbs in steep-0.14.0 vs vendor/ruby-signature/stdlib/builtin/exception.rbs in steep-0.15.0
- old
+ new
@@ -122,11 +122,11 @@
#
# - fatal – impossible to rescue
class Exception < Object
def self.to_tty?: () -> bool
- def self.exception: (?String msg) -> self
+ def self.exception: (?String msg) -> Exception
def ==: (untyped arg0) -> bool
# Returns any backtrace associated with the exception. The backtrace is an
# array of strings, each containing either “filename:lineNo: in \`method”‘
@@ -170,10 +170,11 @@
# Returns the previous exception ($\!) at the time this exception was
# raised. This is useful for wrapping exceptions and retaining the
# original exception information.
def cause: () -> Exception?
- def exception: (?String arg0) -> Exception
+ def exception: () -> self
+ | (String arg0) -> Exception
def initialize: (?String arg0) -> void
# Return this exception’s class name and message.
def inspect: () -> String