createTestException function

Exception createTestException([
  1. String message = 'Test exception'
])

Create a test exception

Implementation

Exception createTestException([String message = 'Test exception']) {
  return Exception(message);
}