ExceptionClass
- Namespace
- Ancestors
Expect block of Expected::Classes::Exceptions.
Constructor
This class inherits its constructor from Object.
Instance Methods
call#⚙
Evaluates the expect block and checks the first raised Exception’s class against the expected Exception class. If no exception is raised, the actual result is checked against the expected value.
- Returns
-
- Results::Error
-
If the raised exception’s class isn’t equal to or a descendant of the expected result class
- Results::Success
-
If the raised exception’s class is equal to or a descendant of the expected result class
- Results::Success
-
If there are no differences between the actual result and the expected value
- Results::Failure
-
If there are differences between the actual result and the expected value