Eagerly reject invalid values to ClassName.fromClass.

Refs #79.
Because that requires 3 tests. Normally I actually verify the exception message to ensure the right behavior is being tested. If I was going to use that approach I'd use an `ExpectedException` rule.