class Exception

Overview

Represents errors that occur during application execution.

Exception and its descendants are used to communicate between raise and rescue statements in begin ... end blocks. Exception objects carry information about the exception – its type (the exception’s class name), an optional descriptive string, and optional traceback information. Exception subclasses may add additional information.

Direct Known Subclasses

Defined in:

assertions.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String | Nil = nil, cause : Exception | Nil = nil, __minitest_file : Nil | String = __FILE__, __minitest_line : Int32 | Nil = __LINE__) #

[View source]

Instance Method Detail

def __minitest_file : String | Nil #

[View source]
def __minitest_line : Int32 | Nil #

[View source]
def __minitest_location : String #

[View source]