Throw exceptions with name and message